pyFDN.load_audio#
- pyFDN.load_audio(name, *, fs=None, package='pyFDN.audio', mono=True)[source]#
Load a packaged audio file as a NumPy array.
- Parameters:
name (str) – File name within
package(e.g."synth_dry.wav").fs (int, optional) – Target sampling rate. If given and different from the file’s rate, the signal is resampled to
fs.package (str) – Importable package holding the audio resource.
mono (bool) – If True, keep only the first channel of multichannel files.
- Returns:
(signal, fs) – Samples as float64 and the (possibly resampled) sampling rate.
- Return type: