Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr1766 :: Sox of Silence

Using SOX to speed up and remove silence in a podcast

<< First, < Previous, Latest >>

Host Image
Hosted by Ken Fallon on 2015-05-11 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (2)

Many of you may be aware of the "truncate silence" filter in audacity. As I already use SOX to speed up my podcasts, I wanted to see if it could also remove silence as well. While the man page is detailed, it is difficult to follow. http://sox.sourceforge.net/

Fortunately Jason Navarrete posted an excellent article on digitalcardboard.com called The SoX of Silence which went through the process step by step http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/

The Script

    # -S, --show-progress
    # -V verbose
    # tempo Change the audio playback speed but not its pitch. 
    # remix Select and mix input audio channels into output audio channels. 
    # remix - performs a mix-down of all input channels to mono.
    # silence Removes silence from the beginning, middle, or end of the audio.
    # http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/
    # 
    sox -S -v2 "${FILENAME}" "${FILENAME}-faster-${SPEED}.ogg" -V9 tempo ${SPEED} remix - silence 1 0.1 1% -1 0.1 1%

Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2015-05-11T01:54:57Z by Jon Kulp

Haulin'

okay so I was already listening to your episode at 1.5x speed and when you did the little demonstration to speed it up to 1.8 times it was really flying ha ha! I don't know what the actual speed would've been at that point (2.7x?) but I had to slow it back down to normal speed on my podcast app and listen again to get the true effect.

By the way I use Beyondpod with the Presto sound library and listen to nearly everything at 1.5x speed by simply adjusting the settings in the app. You can actually set a default playback speed for individual podcast feeds so that you always have the correct speed. I also listen at variable speed using Rockbox on my iPod fourth-gen. So I don't really need the variable speed to be built into the audio file, but I am intrigued by the silence truncation thing. Will definitely poke around with that a bit. Thanks for an interesting episode.

Comment #2 posted on 2015-06-12T16:53:20Z by Urugami

Can it do this....

I've been using the Truncate Silence function in Audacity to do this, since I was doing some editing of podcasts before listening, but didn't start speeding things up until I started using Podkicker with the Prestissimo plug-in. Accelerated listening has really helped me catch up with a 3-month backlog of podcasts. :)
Anyway, to the question... I played around with the sox silence command for a while, trying it out, and got it to work as you said, but what I could not do was to leave the leading silence alone. Man pages, help pages, reference pages, etc all assume you want to get rid of the leading silence, and show how to do that, but don't demonstrate how to skip the leading silence. Nothing I tried worked. Is that something you've tried to do?

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to
record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?