def mp3_to_wav(mp3_file):
target = mp3_file.replace(".mp3", ".wav")
if os.path.exists(mp3_file):
voice = AudioSegment.from_mp3(mp3_file)
voice.export(target, format="wav")
return target
else:
print u"????"
文章目录