<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
You should record them directly in 16kbit/8000hz/mono,&nbsp; converting them
down from a higher sample rate will add quantization noise into the
file.<br>
<br>
<br>
Jeremy McNamara<br>
<br>
<br>
<br>
Brancaleoni Matteo wrote:<br>
<blockquote type="cite" cite="mid1053213817.3564.5.camel@athlon">
  <pre wrap="">Hi
  </pre>
  <blockquote type="cite">
    <pre wrap="">I'd like to record some prompts using a nice microphone and my Ensoniq 
sound card, and then convert them to gsm/wav for use with asterisk.

What Linux command would I use to a) do the recordings, and then b) 
convert them to the appropriate formats?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I used Audacity (<a class="moz-txt-link-freetext" href="http://audacity.sourceforge.net/">http://audacity.sourceforge.net/</a>) under linux for
doing the recording prompts (as mark suggested sometimes ago
onto this list). Is a nice , powerful &amp; simple tool.

Then, after recording them as 16bit/44Khz/mono wav files,
I simply converted them with a batch command to gsm with sox.
For example, if u have several waves in 1 dir, you can simply do

for I in *.wav ; do sox $I -r 8000 -b -c1 `basename $I .wav`.gsm ; done

that will batch convert all files into gsm, using the same filename
(but ending with .gsm), ready 4 asterisk.

Matteo.



_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>