sam
0
Q:

python how to convert mp3 to wav

from os import path
from pydub import AudioSegment

# files
src = input("In: ")
dst = input("Out: ")

# convert mp3 to wav
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")
1
from os import path
from pydub import AudioSegment

# files
src = input("In: ")
dst = input("Out: ")

# convert wav to mp3
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")
-2

New to Communities?

Join the community