dlpy.speech_utils.read_audio

dlpy.speech_utils.read_audio(path)

Read the audio from path into a wave_read object.

Parameters:
path : string

Specifies path of the audio file.

Returns:
wave_reader : class

‘wave.Wave_read’ Object returned by opening the audio file listed in ‘path’.

wave_params : class

Wave parameters (nchannels, sampwidth, framerate, nframes, comptype, compname) obtained by calling getparams() on the ‘wave.Wave_read’ Object.