load#

load(file, wav_calib=None, mat_signal='', mat_fs='')[source]#

Signal loading

This function extracts the signal and its time axis from .wav or .uff file, resamples the signal to 48 kHz, and affects its sampling frequency and time signal values.

Parameters:
  • file (string) – String path to the signal file.

  • wav_calib (float, optional) – Wav file calibration factor [Pa/FS]. Level of the signal in Pa_peak corresponding to the full scale of the .wav file. If None, a calibration factor of 1 is considered. Default to None

  • mat_signal (string) – In case of a .mat file, name of the signal variable. Default to “”

  • mat_fs (string) – In case of a .mat file, name of the sampling frequency variable. Default to “”

Returns:

  • signal (numpy.array) – time signal values

  • fs (integer) – sampling frequency