Skip to content

Commit f048385

Browse files
Add files via upload
1 parent b53b8c2 commit f048385

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

conversion mp3 to wav.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
#source file
3+
src='/content/gdrive/My Drive/working/speaker/speaker_1_2.mp3'
4+
#destination
5+
dst='/content/gdrive/My Drive/working/speaker/speaker_1_2.wav'
6+
from os import path
7+
from pydub import AudioSegment
8+
9+
# convert wav to mp3
10+
sound = AudioSegment.from_mp3(src)
11+
sound.export(dst, format="wav")
12+

0 commit comments

Comments
 (0)