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

Kaushal Shriyan kaushalshriyan at gmail.com
Wed Sep 14 01:55:32 CDT 2011


On Wed, Sep 14, 2011 at 7:04 AM, Steve Edwards
<asterisk.org at sedwards.com> wrote:
> 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

Hi Steve,

Please let me know the correct procedure to get .alaw file format
since I belong to India region.

Regards

Kaushal



More information about the asterisk-users mailing list