Re: Trying to split on silence but losing content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jan

Thanks for responding to my post.

I am actually still having trouble.

Retesting today, this was the command to split:
sox ../whats-been-happening.mp3 out.wav silence   1 0.5 5%    1 0.5 5% :
newfile : restart


and this was the command to concatenate:
sox -V $(ls | sort -f) conten.wav

Here is the first printout, there were 8 of them and they were all similar.

""""
Input File     : 'out001.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:00:02.28 = 100495 samples = 170.91 CDDA sectors
File Size      : 402k
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
"""

BTW, I posted to the list to apologize for a bad post but I am not sure
it is now. I was able to split audio files fine with Audacity and I
thought that it uses Sox in the background and that I must have just
done something dumb but now I am not sure. The resulting concatenated
audio file from sox is a lot shorter than the files that were inputted.

Thanks again-Patrick








On 2021-10-31 8:41 a.m., Jan Stary wrote:
> On Oct 30 15:21:52, patrick@xxxxxxxxxxxxxxxxxxxxxx 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
>
>
>
> _______________________________________________
> Sox-users mailing list
> Sox-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/sox-users




_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux