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       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to