Roger Binns
2005-01-10 10:24:47 UTC
I have committed code sufficient to get MP3 ringtones working, and it
works well on the VX6000. They play loudly and clearly.
You'll need to copy the QueryAudio function from com_lgvx6000.py
into the relevant phone profile. Then drag and drop/add a digital
audio file (eg wav, mp3) and you'll get the conversion dialog.
No interlocks have been put in place in the UI yet. You'll
need to do the convert step first (but can repeat it) and then
crop the result down to size. I suspect there is a 64k file
size limit. Finally hit ok.
Currently this will only work on Windows since it needs the
ffmpeg helper binary. I'll work on doing a Linux version
tomorrow, errr today.
Further notes:
- The default parameters of 22050 Hz sampling and 64kbps
data rate will limit you to about 6 seconds to be under
64kb file size.
- There are no callbacks from the wx library to know how far
sound has progressed playing, so the code runs a timer and
wings it. It has been accurate in my tests so far, and
I don't see any alternatives.
- The conversion UI isn't the best in the world, and I'd be
happy for someone else to take it over once it is all
functionally correct.
- We need to work out what the various phones support. Please
experiment with file size, sampling rates and bit rates
and post the results here.
Roger
works well on the VX6000. They play loudly and clearly.
You'll need to copy the QueryAudio function from com_lgvx6000.py
into the relevant phone profile. Then drag and drop/add a digital
audio file (eg wav, mp3) and you'll get the conversion dialog.
No interlocks have been put in place in the UI yet. You'll
need to do the convert step first (but can repeat it) and then
crop the result down to size. I suspect there is a 64k file
size limit. Finally hit ok.
Currently this will only work on Windows since it needs the
ffmpeg helper binary. I'll work on doing a Linux version
tomorrow, errr today.
Further notes:
- The default parameters of 22050 Hz sampling and 64kbps
data rate will limit you to about 6 seconds to be under
64kb file size.
- There are no callbacks from the wx library to know how far
sound has progressed playing, so the code runs a timer and
wings it. It has been accurate in my tests so far, and
I don't see any alternatives.
- The conversion UI isn't the best in the world, and I'd be
happy for someone else to take it over once it is all
functionally correct.
- We need to work out what the various phones support. Please
experiment with file size, sampling rates and bit rates
and post the results here.
Roger