def convert_to_wav(path): song = AudioSegment.from_file(path) song = song[:30000] song.export(path[:-3]+"wav",format='wav') return path[:-3]+"wav"