Froyo (Android 2.2)
broke the
playing of Vonage’s attached voicemails. I think it’s because
they’re not really .wav’s or something, but whatever the reason,
it’s a total pain in the ass.
Presumably it’ll be fixed in Gingerbread, but it was driving me crazy in
the meantime.
I hacked together some of the worst code ever. I honestly felt like I
was programming like an AI would: Google for something, paste it, run
it, then read it to see why it didn’t work, and repeat.
Anyway, it took me almost an hour, so here it is case it helps someone else.
It uses sox to convert the wav’s to .ogg which seem to play OK on my
Nexus One. To install sox on Ubuntu, just do:
sudo apt-get install sox
Please feel free to leave a comment if you know how to do it for another
platform.
It sits in a loop and checks for messages every 2 minutes, converting
them if it sees a new one. So, you’ll probably want to run it on a
server in a screen session. Or maybe it’d be better in cron and delete
the loop/sleep.