Create a silent mp3 from the command line

后端 未结 4 890
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 19:37

I am trying to create a silent / empty mp3 file of (x) seconds using the command line. Quite a simple task I thought!

It seems LAME is able to do something like this, bu

4条回答
  •  被撕碎了的回忆
    2021-02-01 20:28

    sox -n -r 44100 -c 2 silence.wav trim 0.0 3.0 - this will create a 3sec stereo silence file. Here n for null file handler, r is the sample rate and c is the number of channels.

    Then just lame it:

    $ lame silence.wav silence.mp3

提交回复
热议问题