dlpy.speech_utils.convert_audio_files¶
-
dlpy.speech_utils.
convert_audio_files
(local_audio_path, recurse=True)¶ Convert audio files under a local path into wave files that only contains 1 channel with 16 bits and 16K HZ.
Parameters: - local_audio_path : string
Local location to the audio files that will be converted. The new wave files will be stored under this path. Note if the files are already in the wave format, they will be overwritten.
- recurse : bool, optional
Specifies whether to recursively convert all the audio files. Default : True
Returns: - None
Raises: - DLPyError
If anything goes wrong, it complains and prints the appropriate message.