Can I record sound until silence OR a maximum length of recording?
2
votes
1
answer
2243
views
Looking at detecting sound until some silence occurs , I arrived at the command
rec recording.flac rate 32k silence -l 1 0.1 3% 1 3.0 3%
.
I realize my specific use would be somewhat different: I do want to record until some silence is detected, but I also want an upper limit, say 10-15 seconds, of how long the recording will go on before moving on. I can just prepend a timeout 15s
command, which would give me a maximum speech time of (15 seconds - leading silence, which will vary), but is there some way to tell sox I only need the first x seconds of a recording, which would give me a maximum speech time of 15 secs regardless of leading silence?
Asked by Niklas Raatikainen
(21 rep)
Nov 13, 2015, 11:10 AM
Last activity: Jul 27, 2025, 10:04 PM
Last activity: Jul 27, 2025, 10:04 PM