mel_to_audio
mel_to_audio(
M,sr?,n_fft?,hop_length?,win_length?,window?,center?,pad_mode?,power?,n_iter?,length?,dtype?,kwargs?):Float32Array<ArrayBufferLike>
Defined in: packages/pleco-xa/src/scripts/xa-inverse.js:82
Invert a mel power spectrogram to audio using Griffin-Lim
Parameters
Section titled “Parameters”any[]
Mel spectrogram [n_mels x n_frames]
number = 22050
Sample rate
n_fft?
Section titled “n_fft?”number = 2048
FFT size
hop_length?
Section titled “hop_length?”number = null
Hop length
win_length?
Section titled “win_length?”number = null
Window length
window?
Section titled “window?”string = 'hann'
Window type
center?
Section titled “center?”boolean = true
Center the frames
pad_mode?
Section titled “pad_mode?”string = 'constant'
Padding mode
power?
Section titled “power?”number = 2.0
Power for spectrogram (2.0 for power, 1.0 for magnitude)
n_iter?
Section titled “n_iter?”number = 32
Number of Griffin-Lim iterations
length?
Section titled “length?”number = null
Output length
dtype?
Section titled “dtype?”any = null
Data type (unused in JS)
kwargs?
Section titled “kwargs?”any = {}
Additional mel_filterbank arguments
Returns
Section titled “Returns”Float32Array<ArrayBufferLike>
Reconstructed audio