[asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

Steve Edwards asterisk.org at sedwards.com
Tue Sep 13 20:34:35 CDT 2011


On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

> I have carried out the below steps
>
> [root at host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.alaw

> sox: Output file obd-demo.alaw: using sample rate 8000
> 	size bytes, encoding u-law, 1 channel

Sox v14.x complains about the '-b.'

You are encoding as u-law, but naming the file alaw. Since [a|u]law are 
'headerless' file formats, this will probably confuse Asterisk.

> -rwxr-xr-x 1 root root  741459 Sep 14 06:32 obd-demo.mp3
> -rw-r--r-- 1 root root 2041482 Sep 14 06:32 obd-demo.wav
> -rw-r--r-- 1 root root  185165 Sep 14 06:32 obd-demo.alaw
>
> Am i doing it correctly ? Please comment

I've never used alaw (I'm in the US).

I don't think an MP3 needs 'execute' permissions :)

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list