Post Calendar:

March 2005
M T W T F S S
« Feb   Apr »
 123456
78910111213
14151617181920
21222324252627
28293031  

Converting Vonage voicemail emails to MP3

March 13th, 2005 at 11:09 by toby

We have used Vonage as our phone provider for almost a year now and have loved the service. One of the many features they add at no extra charge is the ability to have all voicemail messages sent as an email attachment. Unfortunately, they only send these attachments in WAV format, which means they take up a ton of room.

I like to store all voicemails I receive in case I need them later, and so I was looking for a way to shrink those emails down. I found this post describing how to do just that using Perl and LAME to convert the attachments to MP3.

Unfortunately, that script didn’t work quite right for me. I have cleaned it up a bit and posted it here for anyone interested.

[UPDATE] 2006.05.14: Towards the end of 2005, Vonage changed the format of their WAV file attachments to use an encoding called “CCITT u-Law” which LAME doesn’t understand. See my new post for a method using SOX instead.

Posted in Geeky Stuff |

4 Responses

  1. Craig Hughes Says:

    Hey, I updated my script, removing the ugly/dangerous temp file use by using IPC::Open2 instead. File is availabel from http://www.hughes-family.or... — I fixed the formatting on my blog too. Some idiot had turned on Markdown processing, which really goes to town on Perl syntax.

  2. toby Says:

    Thanks for the update Craig! Unfortunately, as I mention above I was unable to get IPC::Open2 to work correctly. I have updated the script to use a bit more distinctive of a tempfile name, though. This can also easily be modified to use some other directory besides /tmp which only the MTA has read/write privileges to if necessary.

  3. Craig Hughes Says:

    I’ve figured out the sox foo to get things working with the new WAV format. Check http://www.hughes-family.or...

  4. El Guapo Says:

    CCITT u-Law is optimized for voice and heavily compresses (with minimal loss of quality) a typical voicemail message.

    There really isn’t much need to convert it to mp3.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.