def dirMp3toWavWrapper(directory, samplerate, channels): if not os.path.isdir(directory): raise Exception("Input path not found!") useMp3TagsAsNames = True audioBasicIO.convertDirMP3ToWav(directory, samplerate, channels, useMp3TagsAsNames)
def func(): import sys, os from pyAudioAnalysis import audioBasicIO FS = 16000 # sampling rate of generated WAV files NC = 1 # number of channels of generated WAV files dirName = sys.argv[1] audioBasicIO.convertDirMP3ToWav(dirName, FS, NC, useMp3TagsAsName = False)
def func(): import sys, os from pyAudioAnalysis import audioBasicIO FS = 16000 # sampling rate of generated WAV files NC = 1 # number of channels of generated WAV files dirName = sys.argv[1] audioBasicIO.convertDirMP3ToWav(dirName, FS, NC, useMp3TagsAsName=False)