Re: Trying to split on silence but losing content

Jan Stary <[email protected]> Sun, 31 Oct 2021 13:41:07 +0100
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
On Oct 30 15:21:52, [email protected] wrote:
> I would like to take 10 minutes of audio and split it on silence into
> numerous audio files. I am then hoping to use a "for loop" to repeat
> these split sections.
>
> If the audio was 001.wav 002.wav 003.wav, I want to concatenate ten
> 001.wav files together then ten 002.wav files etc.
> 
> I ran this command:
> 
> sox audio.wav out.wav silence   1 0.5 5%    1 0.5 5% : newfile : restart
> 
> It splits fine

Meaning, you have out001.wav, out002.wav, etc?
Did you actually play them? What does soxi out*wav say?

> but if I concatenate the results back together to check
> for lost sound, I get about 15 seconds of audio from a 10 minute audio file.

What exactly is your "concatenating" command? (Please show sox -V)

> Does anyone know why I am losing content? Is there a better set of
> command arguments to do this?

Hard to say if we don't know what you did and what sox said.

	Jan