[Asterisk-bsd] mpg123 and asterisk port

Graham Menhennitt gmenhennitt at optusnet.com.au
Mon May 29 14:46:48 MST 2006


Vahan Yerkanian wrote:
> Graham Menhennitt wrote:
>> But I can't get sox to convert properly. The files it produces are
>> almost silent. You can just hear some very strange "tinny" sounds. The
>> only codec I use is ulaw. So I just used "sox input.mp3 output.ul" (I
>> also tried "sox input.mp3 -U output.ul"). It must be doing something
>> almost right, because if I specify the output file as ".lu" instead I
>> just get white noise. So ".ul" files seem to be the right thing. But I
>> just don't get any music - just these strange sounds. I don't have
>> anything that plays .ul files directly. When I use sox to convert them
>> back to mp3 files, and I play them using Windows Media Player, I get the
>> same tinny sounds.
>
> The way I converted my 44.1khz / 128kbit / 16bit / stereo mp3 files was:
>
> 1. Resampled them to 8khz / 16bit / mono wav files.
> 2. sox input.wav output.ul
>
> So I used sox to convert format only. Actually you can use
> Windows/MacOS based sound editors for the job too.
>
Thanks Vahan. That did it. I used
    sox input.mp3 -U -c 1 -r 8000 output.ul
and it worked beautifully.

Thanks again,
    Graham


More information about the Asterisk-BSD mailing list