dlpy.speech_utils.convert_audio_files_to_specgrams

dlpy.speech_utils.convert_audio_files_to_specgrams(local_audio_path, recurse=True)

Convert audio files under a local path into the images (PNG) that contain spectrogram.

Parameters:
local_audio_path : string

Local location to the audio files that will be converted. The new image files will be stored under this path. Note if the files are already in the PNG 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.