Created
October 12, 2017 14:10
-
-
Save VojtechKlos/3156ecd944d8f4226f1ce599d5e0289c to your computer and use it in GitHub Desktop.
Guide to split audio recording by silence with SoX and ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First denoise audio | |
## Get noise sample | |
ffmpeg -i input.ogg -vn -ss 00:00:00 -t 00:00:01 noise-sample.wav | |
## Create noise profile | |
sox noise-sample.wav -n noiseprof noise.prof | |
## Clean audio from noise | |
sox input.ogg clean.wav noisered noise.prof 0.21 | |
# Split audio by noise | |
sox -V3 clean.wav output.wav silence 1 0.2 0.4% 1 0.2 0.4% : newfile : restart | |
####### (these settings worked for my computer mic - maybe we need to finetune them later) ####### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment