示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)