How to do it...

Let's perform the following steps:

  1. Start the Audacity software and select File | Open. Then, select the MP3 file and click on Open.
  2. Details of the audio file should appear in the application, as shown in the following screenshot:
  1. Select Tracks | Resample and the following dialog box should appear:
  1. Set the new sample rate to 22050 and then click on OK.
  1. Now, choose Tracks | Stereo Track to Mono. Instead of the stereo audio streams that were visible, there should only be one single mono channel on the screen:

The audio data is now ready to be exported to the WAV format.

  1. Next, choose File | Export Audio.
  2. Set the file format drop-down menu to the value of WAV (Microsoft) signed 16-bit PCM.
  3. Click on the Save button.
  4. You can now copy the WAV file to the board and play it back on the device.