匯出並重新格式化音訊檔案
本練習屬於課程
Python 的口語語言處理
練習說明
- 匯入
mp3_file.mp3並將其儲存到mp3_file。 - 使用
"wav"的format,將mp3_file以檔名mp3_file.wav匯出。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
from pydub import AudioSegment
# Import the .mp3 file
mp3_file = AudioSegment.from_file(____)
# Export the .mp3 file as wav
mp3_file.____(out_f=____,
format=____)