This article is about converting mp3 and wave files to AD4 format. This tutorial is suitable for amateurs and beginners. WTV020-SD module is a voice rewritable content type of mass storage voice module, pluggable maximum capacity of 2 GB SD card memory. It can load WAV format files and AD4 formats files.
WTV020-SD module voice chip has WTV020SD-20S master core, with MP3 control mode, the key one-to-one control mode (3 voice with the voice two), the power-loop control mode as well as the second-line serial control mode.
This article shows you how to convert an *.mp3 or a *.wav file to *.ad4 format for wtv020SD-16P music module. I have found two methods for converting the files to either formats.
Method 1: Using command prompt.
I recommend you to use command prompt method for short music files. If you want to convert a long music file, then, you should use method 2.
Follow the given procedures for converting an mp3 or a wav file to ad4 format.
a. First of all, lower the volume of the music file.
The following image shows a file with high volume.
and the following image should a file with low volume sound:
c. Convert an mp3 format file to wav format.
b. If you have a STEREO mp3 file, convert it to 16 bit MONO. For example, if you have an mp3 file with stereo format, your converted wav file should be in mono format.
c. Set the other parameters also, for example, PCB, 16 Bit, etc.
A music editing software, for example, Sound Forge, would set all the parameters and convert the files to wav format at once.
You can use an open source sound editing software called AUDACITY for converting an mp3 file to wav format with the above stated parameters.
WATCH A VIDEO (Shows you how to lower volume and convert an mp3 file to wave format with the required parameters. It is shown on Sound Forge software)
d. Download AD4Converter.EXE
- Double click AD4CONVERTER.exe to see the command set help.
- Say you have a wav file at C:WavFilesTrack1.wav.
- Open a Command prompt window.
- Get to the root location where you copied AD4CONVERTER.exe.
- Write the command which should be in the following format:
AD4CONVERTER –E4 C:WavFilesTrack1.wav
A file Track1.AD4 will be created where you have the original Track1.wav file.
WATCH A VIDEO (This video shows you how to convert a wav file to ad4 format using command prompt)
Method 2: Using SOMO tool
You can download the SOMO tool for converting an mp3 or wave file to ad4 format from this link or from here.
One more link: Click here
There are only two easy steps in this method. First, volume reduction and second, sound format conversion.
a. First of all, lower the volume of the music file. There is an upper and a lower threshold for sound amplitude which should not be crossed by your sound. If the amplitude goes over the threshold, the music module can anytime stop playing your file. Please check this article to know how to lower the volume of your music file. You can also watch a more detail video, click here.
b. Simply open an mp3 or a wav file, set the sample rate to 32000 and convert to AD4 format.
It should then work with Arduino. I have tested this method for more than 50 files on more than 20 pcs of wtv020sd music modules.
WATCH A VIDEO (This video shows you how to convert an mp3 or a wav file to ad4 format).
c. Mp3 mode and audio amplifier.
d. Basic circuit with Arduino- example 1.
e. Basic circuit (trig and select) example 2.
f. How to convert mp3/wave format files to AD4 format.
- Photos on FLICKR
- Datasheet of WTV020SD-16P
- Download SOMO tool for converting mp3 and wave files to AD4 format.
- AD4 Format Files– Download Samples (6 music files)
- About WTV020SD-16P evaluation kit
DOWNLOAD AD4 FORMAT SAMPLE FILES- SET2-SAMPLES FILES 2 (NEW!!! uploaded on 15.1.2014)
You can buy all the components for this experiment on www.buildcircuit.com. The web store is owned and operated by buildcircuit.com. Buildcircuit.com is a reliable webstore for amateurs. It sells low cost components and offers fast shipping service.
- 3.3v regulator
- 5V regulator
- 2GB micro SD card
- Audio amplifier
- Tactile switch
DO NOT USE 5V POWER SUPPLY FOR THE MODULE. 5V will burn both your MicroSD card and WTV020SD module. Please use only 3.3V power, either from Arduino or use 3.3V regulator chip.
Thanks to you I ran my module without any problems with arduino and as standalone circuit! Great job! I have one question, what software did you use to show sound amplitude at the top of this article?
thanks. Method 1 didnt work, but method 2 worked great!
Hi, I have mp3 files and I have tried both 2 methods, but they aren’t working on my pc. Are there any other way to convert mp3 to ad4? It is a bit hurry thing to I must have done.
Another point that you might have to concider is the the length of the file you are converting. I noticed that sound files of less than about 2 seconds (such as you might use in sound effects) caused the SOMO tool to crash.
Looks like Soundforge, dude.
After many tries, I’m able to export directly from Audacity (2.1.2 on OSX) directly to a format that will play on the wtv020sd16p. My settings were:
Project Rate 16000 Hz (lower left corner)
File > Export Audio…
File type: Other uncompressed files
Header: WAV (Microsoft)
Encoding: Unsigned 8-Bit PCM
Save your file as 0###.wav where ### is 000 to 511