[asterisk-users] cli command show codecs
    Steve Edwards 
    asterisk.org at sedwards.com
       
    Thu Sep  1 09:43:12 CDT 2011
    
    
  
On Thu, 1 Sep 2011, RSCL Mumbai wrote:
> I simply convert all my audios (MOH, accouncements) to .wav format, 
> 16bit, 11kHz (I believe this is the best format for asterisk).
8KHz?
> (a) How can I check the codec format of my announcements, MOH ?
The 'file' command will show you the format for some codecs:
-t2::sedwards:/var/lib/asterisk/sounds$ file demo-congrats.*
demo-congrats.gsm: data
demo-congrats.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 
16 bit, mono 8000 Hz
> (b) How can I record/convert announcements, MoH etc to a particular 
> format ?
sox can transcode files.
In your quest to eliminate transcoding, the 'module show like codec' CLI 
command will show which codecs you have loaded. The 'use' column will show 
how many times a codec is in use. If it is non-zero for a codec you are 
not expecting, start digging through the 'show channel's.
-- 
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