[Asterisk-Users] English vs American voice files
James Cloos
cloos at jhcloos.com
Mon Sep 20 10:18:12 MST 2004
>>>>> "Bill" == Bill Seddon <bill.seddon at lyquidity.com> writes:
Bill> My use of sox for down sampling is limited to
Bill> this kind of command:
Bill> sox in.wav -r 8000 out.gsm
You really want to use the polyphase app in sox for resampling.
It is significantly slower than the other options, but that is
irrelevant here. So try:
sox in.wav -r 8000 out.gsm polyphase
Use out.sl for a slinear file (then rename it to whatever.snl),
out.ul for a mu-law file, out.al for an alaw file, etc. Cf
show file formats at the * cli.
If you are mostly sending the audio out over a zap channel, you
may as well use ulaw or alaw -- whichever the pstn in your area
uses. If primarily voip, you can match whichever codec you use
or just make it slinear (.sw in sox; .sln for *) and convert it
on the fly.
-JimC
More information about the asterisk-users
mailing list