dlpy.speech_utils.play_one_audio_file

dlpy.speech_utils.play_one_audio_file(local_audio_file)

Play a local audio file using soundfile and sounddevice.

Parameters
local_audio_filestring

Local location to the audio file to be played. When it is a directory, a file will be randomly chosen.

Returns
None
Raises
DLPyError

If anything goes wrong, it complains and prints the appropriate message.