Audio
Last updated
Last updated
Helper module for audio processing.
These functions and classes are only used internally, meaning an end-user shouldn’t need to access anything here.
⇒ Promise.<Float32Array>
: Float32Array
⇒ Array.<Array<number>>
Helper function to read audio from a path/URL.
Kind: static method of
Returns: Promise.<Float32Array>
- The decoded audio as a Float32Array
.
url
string
| URL
The path/URL to load the audio from.
sampling_rate
number
The sampling rate to use when decoding the audio.
Kind: inner property of
Creates a frequency bin conversion matrix used to obtain a mel spectrogram.
sr
number
Sample rate of the audio waveform.
n_fft
number
Number of frequencies used to compute the spectrogram (should be the same as in stft
).
n_mels
number
Number of mel filters to generate.
Kind: static method of
Returns: Array.<Array<number>>
- Projection matrix to go from a spectrogram to a mel spectrogram.