4

I hear a mp3 that is extracted from some tv dramas as a English exercise. So in that mp3 there are lot of "silence part" in which no one speaks and there is no background music.

Is there a way to remove that silence part by using ffmpeg or some other program from command line?

8

You could use SoX - Sound eXchange. To remove silence from file:

sox input.mp3 output.mp3 silence 1 0.1 1% -1 0.1 1%

Also there is a good tutorial: The SoX of Silence | digitalcardboard.com

-3

At this point, you're talking about audio editing so you may try looking into audacity

  • 2
    You are suggesting a generic tool for a specific task which can be automated.. – phoops Apr 14 '14 at 17:50
  • Can it be automated? Nothing in the OP implies that it could be. If anything it's implied that it can't be as most television dramas don't follow a pattern predictable enough to give literal values to a given tool. – Bratchley Apr 14 '14 at 17:59
  • Also it's generally better form to recommend generic tools rather than highly specific ones since the skillset they earn with one tool can be transferred to new problems they may face in the future. Typically you only suggest specialized tools if the generic ones can't quite achieve the effect you're going for. – Bratchley Apr 14 '14 at 18:01
  • With such specific and small tasks as automatically filtering silence out it is better to use something like @diffycat answered with. Your suggestion is good in general, but I think in this case specific tools can solve the problem more efficiently. – phoops Apr 14 '14 at 18:04
  • 1
    You missed: “highlight the second silent part, delete, highlight the third silent part, delete, …” There's probably a way to do this in Audacity, but you didn't mention that in your answer. Doing it manually is not reasonable. – Gilles 'SO- stop being evil' Apr 14 '14 at 22:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.