Juergen Zdero | 5 Nov 2006 17:18
Picon

waveform-pattern search

Hi,

i am looking for a possibility to search a waveform pattern in another 
wav-file. 
Is it possible with sox or do anybody know a way to do this ?

regs Juergen

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
MarcEL | 3 Nov 2006 21:21
Picon
Picon

Sox stops unexpected, when redirecting sound from TV card

Hi,

I have problems redirecting sound from my pinnacle PCTV USB2 TV-card to
my sound card. I use the following command:

sox -t ossdsp -r 48000 -b -c 2 /dev/dsp1 -t ossdsp /dev/dsp

I tried other bitrates and other options, which I found by google, too.
But sox stops after several seconds. The buffer is between 250k and 1MB.
Sox aborts with Done.
I'm using Ubuntu 6.10 on Intel Centrino 1400 with sound onboard. Tried
some precompiled deb-packages of sox and are now running version 12.8.2.
Maybe somebody had simular problems. I would appriciate any help.

Thank you

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Joel Caturia | 6 Nov 2006 03:31

Re: waveform-pattern search

Are you doing tone decoding/recognition by any chance? I'm looking for a
way to decode specific tones in an audio file (from a fire department
two-tone dispatch) - I haven't really found a suitable way yet.

- Joel

-----Original Message-----
From: sox-users-bounces <at> lists.sourceforge.net
[mailto:sox-users-bounces <at> lists.sourceforge.net] On Behalf Of Juergen
Zdero
Sent: Sunday, November 05, 2006 8:18 AM
To: Sox-users <at> lists.sourceforge.net
Subject: [SoX-users] waveform-pattern search

Hi,

i am looking for a possibility to search a waveform pattern in another
wav-file. 
Is it possible with sox or do anybody know a way to do this ?

regs Juergen

------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
(Continue reading)

Juergen Zdero | 6 Nov 2006 16:44
Picon

Re: waveform-pattern search

Hi Joel,

i am doing speech.database-design. Text2Speech. TTS

tone recognition should be easier than speech recognition, so i think a 
seech-recognition process should be able to identify sveral specific tones 
too. But i never worked with this kind of processe. I just generate speech.

regs juergen 

On Monday 06 November 2006 03:31, Joel Caturia wrote:
> Are you doing tone decoding/recognition by any chance? I'm looking for a
> way to decode specific tones in an audio file (from a fire department
> two-tone dispatch) - I haven't really found a suitable way yet.
>
> - Joel
>
> -----Original Message-----
> From: sox-users-bounces <at> lists.sourceforge.net
> [mailto:sox-users-bounces <at> lists.sourceforge.net] On Behalf Of Juergen
> Zdero
> Sent: Sunday, November 05, 2006 8:18 AM
> To: Sox-users <at> lists.sourceforge.net
> Subject: [SoX-users] waveform-pattern search
>
> Hi,
>
> i am looking for a possibility to search a waveform pattern in another
> wav-file.
> Is it possible with sox or do anybody know a way to do this ?
(Continue reading)

David Lu | 6 Nov 2006 23:38
Favicon

Converting from MP3 to WAV problem


Hi,

I use sox to convert podcasts in MP3 to WAV.  It works
great, except for this podcast:

http://feeds.feedburner.com/IndiefeedAlt/modernRock

If you download the last few episodes (as of Nov 6 2006),
and try to run sox on them, the audio gets all stretched
out.

I tried the latest sox (12.18.2) with libmad.  "madplay"
was able to play the file, so I think the decoder works.

Below is the output of sox, which seems to indicate that
the input MP3 is not a supported format.  So is there a
way for me to convert it to WAV?

Output below:

dlu <at> localhost$ src/sox -V ~/indie/indiefeed_brianjonestownmassacre_who.mp3 test.wav
src/sox: Detected file format type: mp3

src/sox: Input file /home/dlu/indie/indiefeed_brianjonestownmassacre_who.mp3: 
using sample rate 11025
         size shorts, encoding MPEG audio (layer I, II or III), 2 channels
src/sox: Do not support MPEG audio (layer I, II or III) with 16-bit data. 
Forcing to Signed.
src/sox: Writing Wave file: Microsoft PCM format, 2 channels, 11025 samp/sec
(Continue reading)

Chris Bagwell | 7 Nov 2006 04:42

Re: Converting from MP3 to WAV problem

David Lu wrote:
> Hi,
>
> I use sox to convert podcasts in MP3 to WAV.  It works
> great, except for this podcast:
>
> http://feeds.feedburner.com/IndiefeedAlt/modernRock
>
> If you download the last few episodes (as of Nov 6 2006),
> and try to run sox on them, the audio gets all stretched
> out.
>
> I tried the latest sox (12.18.2) with libmad.  "madplay"
> was able to play the file, so I think the decoder works.
>   
I tried to track down how madplay computes the sample rate but failed.  
I tracked down some code in libmad were it detects if the mp3 is a MPEG 
2.5 and if so divides the reported sample rate by 4.  This explains the 
stretched sound.

The following patch got things working but I can't find any other 
software that uses libmad and also does the same thing... Its got me 
concerned that sox is not doing very good things related to sample rates 
and mp3's.  If I don't hear anything negative then I'll probably submit 
this after a  while though.

Chris

diff -u -w -r1.18 mp3.c
--- src/mp3.c   5 Sep 2006 02:37:29 -0000       1.18
(Continue reading)

Chris Bagwell | 7 Nov 2006 04:54

Re: Sox stops unexpected, when redirecting sound from TV card

There is a good chance that an overrun or underrun is occurring and SoX 
is aborting.  The OSS driver in SoX doesn't have any code to handle 
error codes returned from read() and write().

The alsa driver has better support in this area.  If possible, I'd 
suggest switching to the alsa driver.

Chris

MarcEL wrote:
> Hi,
>
> I have problems redirecting sound from my pinnacle PCTV USB2 TV-card to
> my sound card. I use the following command:
>
> sox -t ossdsp -r 48000 -b -c 2 /dev/dsp1 -t ossdsp /dev/dsp
>
> I tried other bitrates and other options, which I found by google, too.
> But sox stops after several seconds. The buffer is between 250k and 1MB.
> Sox aborts with Done.
> I'm using Ubuntu 6.10 on Intel Centrino 1400 with sound onboard. Tried
> some precompiled deb-packages of sox and are now running version 12.8.2.
> Maybe somebody had simular problems. I would appriciate any help.
>
> Thank you
>
> Marcel
>
>   

(Continue reading)

David Lu | 7 Nov 2006 22:34
Favicon

Re: Converting from MP3 to WAV problem


Hi Chris,

I tried your patch and it worked for the IndieFeed podcasts.

However, it now speeds up The Onion podcasts at:

http://feeds.theonion.com/theonion/radionews

The Onion was working fine without the patch.  I tried a few
other podcasts, and they work fine.  madplay works with it as
well.

So it looks like just checking for MPEG 2.5 is not sufficient.
As you suspected, sox is probably not getting the sampling rates
out of the mp3 files correctly.

                          - David -

Chris Bagwell wrote:
> David Lu wrote:
> 
>> Hi,
>>
>> I use sox to convert podcasts in MP3 to WAV.  It works
>> great, except for this podcast:
>>
>> http://feeds.feedburner.com/IndiefeedAlt/modernRock
>>
>> If you download the last few episodes (as of Nov 6 2006),
(Continue reading)

MyName | 8 Nov 2006 02:18
Picon

Re: DC bias after converting Dialogix ADPCM VOX-files using SOX

Yes, I see the same thing. (I use Cooledit 2000, 6kHz Dialogic ADPCM, 
sox v12.18.1).

No, I don't know the proper or official solution.

My workaround is to use the dcshift option, e.g.
  sox -r 6053 -t vox INPUT.VOX -t wav OUTPUT.WAV dcshift 0.018 .0001

This seems to negate 99% of the bias.

The .018 & .0001 are 'magic numbers' that work for me.

-Morgan

Kulaghin Yuri <yuri <at} westcall.ru} writes:

} 
} Hello!
} 
} I use SoX 12.17.9 on Intel PC to convert Dialogic ADPCM records to
} something else - WAV, MP3, raw PCM and others.
} 
} All resulting files are heard good but some of these files have strong
} DC bias right up to max amplitude values - it is seen in any sound
} editor.
} 
} If to open original VOX-file in sound editor Sound Forge it has the
} same DC bias, i.e. Sound Forge uses the same uncertain algorithm of
} VOX decoding as Sox.
} 
(Continue reading)

Arnon, Asaph (Asaph | 9 Nov 2006 15:26
Favicon

slow sox on PPC when converting some files from wav to raw

Hi
 
I am running sox on PPC, using it to convert wav files to raw format. In order to accept different wav as input files I am using the following flags:
sox source_file.wav -U -r 8000 -c 1 target_file.raw. I think I need 8000 hrtz, and 1 channel, u-law since in order it to play good with: "cat raw_file.raw > /dev/audio")
The problem is that for some wav files the conversion time on the PPC is too long (4 minuts for 1MB file) even though I get good conversion I cannot wait that long. This is all depends on the type of wav file. When I am not using these flags (sox source_file.wav target_file.raw) the conversion file is very short, BUT than the raw file is not playable.
 
So, I have two questions:
1) Is there any way to speed up the conversion process, but still make the output format to fit "cat raw_file.raw > /dev/audio"?
2) Is there a way to check the wav file header with sox, and so reject wav files that their conversion will take long time before i try to convert them?
 
Thanks,
Asaph
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

Gmane