Converting Audio for Use in a MIDlet

In the tutorial Using Sprint MIDP 1.0 Extensions, we examined the use of sound APIs to play QCELP-encoded sampled sounds. This time, we will cover how to create our own sampled sound files for use in a MIDlet.

Step one is to aquire a WAV file. You can create it yourself using a tool such as Windows Sound Recorder, or find a one from a royalty free sound library.

Next, download the PureVoice SDK 3.1 for Windows. This SDK contains the program we will use to convert our WAV file to a QCP file. Unzip the file that you downloaded into a directory of your choosing.

Last, simply drag-and-drop your WAV file onto the pvconv.exe file. The result should be a new QCP file representing your QCELP-encoded sampled sound. Now you can use play this sound file from your MIDlet using the sound APIs supported by your device.

Bookmark this article: del.icio.us Digg Furl Reddit blogmarks Google Spurl StumbleUpon Technorati Yahoo!

Tags: , , , , , , ,

Leave a Reply

You must be logged in to post a comment.