antiboredom / audiogrep

Creates audio supercuts.
http://antiboredom.github.io/audiogrep
MIT License
961 stars 63 forks source link

command for splicing silences #30

Open montoyamoraga opened 5 years ago

montoyamoraga commented 5 years ago

hi @antiboredom i am trying to splice a long audio file in all the words that are said, so i want to spliceit when a silence happens, but haven't still figured it out yet.

what is the command for that? what are the parameters available?

in return for your help i can do a pull request with documentation for the README of audiogrep.

i will keep on looking for a way to do it with ffmpeg too.

antiboredom commented 5 years ago

Do you mean you want to sort of split it on the silences to extract all the parts where people are talking?

montoyamoraga commented 5 years ago

@antiboredom exactly :)

antiboredom commented 5 years ago

There are a few options! You can do this with sox: https://stackoverflow.com/questions/20014064/how-to-batch-split-audio-files-wherever-there-is-silence

or you can do it with audiogrep by looking for silences in the timestamps

montoyamoraga commented 5 years ago

thanks @antiboredom ! i will try sox, i haven't used it before.

i still want to use audiogrep for it, to split on the silences and have the filename be an ascending number, 0-th to the Nth sample, similar to audiogrep --input path/to/*.mp3 --extract