Yesterday I had occasion to play with HTC Touch Dual smartphone. Nice phone, comfortable formfactor, a bit crappy keypad. No WiFi or GPS but HSDPA/UMTS/EDGE present so it can be used for browsing net.

And it has nice ringtones πŸ™‚ I grabbed few of them to use with my SE k750i phone but they were in WMA format and my phone handle only MIDI or MP3 ringtones. So converting is required…

How to convert WMA to MP3 then? There are many ways.

First method require use of Mplayer and Lame:

mplayer -ao pcm:waveheader ringtone.wma
lame -h audiodump.wav -o ringtone.mp3

Second way require GStreamer and lame plugin:

gst-launch filesrc location=ringtone.wma ! decodebin ! lame ! filesink location=ringtone.mp3

As a result I got ringtones in format accepted by my phone.

Converting ringtones (WMA -> MP3)

4 thoughts on “Converting ringtones (WMA -> MP3)

  • 18th November 2007 at 16:38

    Third way uses ffmpeg (lame support must be enabled at compile time)

    ffmpeg -i ringtone.wma -acodec libmp3lame -ab 128k ringtone.mp3

  • 15th December 2007 at 10:54

    I used to do the same. With my current phone, nokia chocolate, you pretty much have to void the warranty to get a free tone.

  • 12th March 2008 at 19:09

    Don’t ask your phone company they will most likely tell you that you cant load outside audio as ringtones. I guess they want you to buy them from them. But yeah. External audio converted works great.

  • Pingback:N900 — second day – Marcin Juszkiewicz

Comments are closed.