Re: sox silence does not work for me... help wanted
Chris Bagwell <chris <at> cnpbagwell.com>
2006-12-08 02:54:45 GMT
The silence effect will not do what your trying to do; although its a
commonly requested feature.
The main problem is that once it detects 5 seconds, from your example,
it will remove all silence. Including the first 5 seconds it detected.
Chris
John van der Vuurst wrote:
> Hi,
>
> I have some wav files containing recording from a radio scanner.
> It contains between the communication some (long) parts of silence.
>
> I want to reduce each part of silence longer than 5 seconds to 5
> seconds.
>
> I try to do this with SoX and the option silence, but somehow I cannot
> get it to work.
> I always end up with an output file exactly equal to the input file.
>
> To make it simpler I tried to remove all the silence from the files,
> using the following command:
>
> sox -V -t wav scanner00.wav -t wav test00.wav silence
> 0,0,10%,-1,0,0%
>
> Can anyone tell me how to get it to work?
>
> Some details from the version of SoX, my system and the files:
>
> I am using sox: Version 12.17.9
>
> I am running Fedora Core 5 on a AMD 64bit system with 2 Gb internal
> memory.
> The files are:
>
> -rw-r--r-- 1 root root 57548227 Dec 4 23:43 scanner00.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 00:43 scanner01.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 01:43 scanner02.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 02:43 scanner03.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 03:43 scanner04.wav
> -rw-r--r-- 1 root root 57547886 Dec 5 04:43 scanner05.wav
> -rw-r--r-- 1 root root 57547545 Dec 5 05:43 scanner06.wav
> -rw-r--r-- 1 root root 57547886 Dec 5 06:43 scanner07.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 07:43 scanner08.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 08:43 scanner09.wav
> -rw-r--r-- 1 root root 57547886 Dec 5 09:43 scanner10.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 10:43 scanner11.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 11:43 scanner12.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 12:43 scanner13.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 13:43 scanner14.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 14:43 scanner15.wav
> -rw-r--r-- 1 root root 57548568 Dec 5 15:43 scanner16.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 16:43 scanner17.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 17:43 scanner18.wav
> -rw-r--r-- 1 root root 57547886 Dec 5 18:43 scanner19.wav
> -rw-r--r-- 1 root root 57547545 Dec 5 19:43 scanner20.wav
> -rw-r--r-- 1 root root 57548227 Dec 5 20:43 scanner21.wav
> -rw-r--r-- 1 root root 46456832 Dec 5 21:31 scanner22.wav
>
> And all have the following characteristics
>
> sox: WAV Chunk fmt
> sox: WAV Chunk data
> sox: Reading Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec
> sox: 16000 byte/sec, 1 block align, 8 bits/samp, 57548183 data
> bytes
> sox: 57548183 Samps/chans
> sox: Input file scanner00.wav: using sample rate 16000
> size bytes, encoding unsigned, 1 channel
> sox: Writing Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec
> sox: 16000 byte/sec, 1 block align, 8 bits/samp
> sox: Output file test00.wav: using sample rate 16000
> size bytes, encoding unsigned, 1 channel
> sox: Output file: comment "Processed by SoX"
>
> sox: Finished writing Wave file, 57548183 data bytes 57548183 samples
>
>
> Thanks in advance!
>
> John van der Vuurst, The Netherlands
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sox-users mailing list
> Sox-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV