module documentation

Undocumented

Function combine_audio_files Combines the audio-files and resamples to a desired sampling frequency. If fs is None, then the sampling frequency will be of the first loaded audio-file.
Function generate_babble Undocumented
Function get_n_sound_files No summary
def combine_audio_files(audio_files, fs): (source)

Combines the audio-files and resamples to a desired sampling frequency. If fs is None, then the sampling frequency will be of the first loaded audio-file.

Parameters
audio_files:List[str]list of audio-files to combine
fs:intsampling frequency, if None, sampling frequency will be the same as the first audio-file in audio_files
Returns
(int, np.ndarray)the sampling frequency and the combined sound in a numpy array normalised by the max-value of the array
def generate_babble(data_folder, n_talkers, fs=None): (source)

Undocumented

Parameters
data_folder:strUndocumented
n_talkers:intUndocumented
fs:intUndocumented
Returns
(int, np.ndarray)Undocumented
def get_n_sound_files(data_folder, n_talkers): (source)
Parameters
data_folder:str
n_talkers:int
Returns
List[str]
Raises
ValueErrorWhen n_talkers is larger than the count of files in data_folder