blank mp3 만들기

Bing 에 물어봤더니 친절히 다음 코드를 알려 주었다. 아쉬운 점은 ffmpeg 가 설치된 환경에서 정상적으로 동작한다는 것을 알려주지는 않았다.

from pydub import AudioSegment

# create 1 second of blank audio
blank = AudioSegment.silent(duration=1000)

# export the blank audio as an mp3 file
blank.export("blank.mp3", format="mp3")