[Asterisk-Users] RE: GSM -> ULAW sound conversion

Michiel van Baak michiel at vanbaak.info
Sun Jun 12 11:37:13 MST 2005


On 11:05, Sun 12 Jun 05, Kevin Bockman wrote:
> > Now, if I do a record on Asterisk, using pcm, au, or ul, I get pops in
> > the audio.  What am I doing wrong?
> > 
> > Also, what types of wav (not WAV) files does Asterisk generate?  I have
> > a couple wav files to convert too.  I believe if I do a sox file.wav -r
> > 8000 -c 1 fle.wav file.gsm, I have the same type of problem.
> > 
> > Kevin Bockman
> 
> If I store the file as gsm and record it as gsm, open it was gsm 6.10
> with Audacity, it is fine.  I know I am doing something wrong with the
> u-law conversion.
> 
> On a similar note, I have seen in the archives where people have an
> output of the file type, showing Hz, bits, etc.. what are they using
> for that? 
> 
> Thanks,
> 
> Kevin Bockman
> 

As I said in my last mail, 'file' should do it.
I checked it with a recorded voicemail:
sin# file msg0000.WAV
msg0000.WAV: Microsoft RIFF, WAVE audio data, mono 8000 Hz

Other types give other output, some showing channels etc,
some showing only filetype.
-- 
Michiel van Baak
http://michiel.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Two of the most famous products of Berkeley are LSD and BSD. I don't think that this is a coincidence."




More information about the asterisk-users mailing list