dlpy.speech_utils.read_audio

dlpy.speech_utils.read_audio(path)

Read the audio from path into a wave_read object.

Parameters
pathstring

Specifies path of the audio file.

Returns
wave_readerclass

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

wave_paramsclass

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