Making recordings for Asterisk on a Mac

Posted by Scott Laird Sun, 06 Feb 2005 00:38:02 GMT

How to get decent-quality sound recordings into Asterisk from a Mac without a ton of work:

  1. Record with GarageBand. Use a real microphone, not the one built into the Mac. If your Mac doesn’t have a microphone jack, consider buying a Griffin iMic.
  2. Export to iTunes. With GarageBand 1.0, this seems to be the only export option available.
  3. Find the track in iTunes and convert it to an MP3. This shouldn’t be necessary (or really even a good idea), but my copy of sox (below) couldn’t handle the AIFF file that GarageBand produced.
  4. Run sox with these options: sox recording.mp3 -r 8000 -w -s -c 1 recording.wav resample -ql
  5. Verify that the WAV file sounds okay.
  6. Copy the WAV file into /var/lib/asterisk/sounds. You can now use it with Asterisk’s Playback application.

The WAV file produced is sampled at 8 kHz, with 1 channel of 16-bit signed linear audio. This seems to be the best format for Asterisk, assuming that you don’t mind using around 16 KB/sec for audio files.

Posted in  | Tags , , ,  | 1 comment

Comments

  1. oculos said 3 days later:

    Hi there Scott!

    Hey, I’m planning to get a Mac Mini, and I’d like to use it as an asterisk box, as well as a MythTV frontend.

    I read that you are working on an asterisk-caller-id-display-on-mythttv, right? Will it have to work on the server or on the frontend?

    I really would like an all-mac solution for this. I guess MythTV could even be avoided with already existent applications. The only thing that doesn’t work are callerID infos being superimposed on fullscreen video (I did some tests with bluetooth apps and things like LANOsd and Growl). The cool about MythTV is that it seems that it can handle those stuff, right? But, again, no server for Mac…

    Well, the Mac Mini seems to be a great device for home entertainment, so I just hope they port MythTV server to it.

    Great blog!!

    Cheers,

    oculos

Comments are disabled