Re: tone detection

Jan Stary <[email protected]> Thu, 3 Jun 2021 09:22:05 +0200
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
The message still awaits moderator's approval, because of the
wav attachment. So here it is with a link instead:
http://stare.cz/.tmp/radio.wav

	Jan

On May 30 18:35:17, [email protected] wrote:
> On May 30 17:58:34, [email protected] wrote:
> > The following seems to be a confused usage of the 'silence' effect.
> > If I am reading it right, you trim the file at the first 2 secs of silence,
> > see how long that beginning was, and cut that much from the file (again).
> > Just let sox cut everything up to and including the first silence.
> > 
> > Read the description of 'silence' again, 
> > paying special attention to the 'above-periods' parameter.
> 
> Here's an example: the attached radio.wav is a fake recording
> of the entire broadcast; the following lines cut just the 'news' for me.
> 
>   sox radio.wav normalized.wav gain -n 
>   sox -V normalized.wav news.wav silence 2 00:00:02.5 0.2% 1 00:00:01 0.1%
> 
> Tweak the constants to your actual audio of course.
> 
> 	Jan
>