[M460] MP3 Recorder

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

02 Jun 2022, 13:44

  • Application: This example code encodes sound recorded from audio codec to MP3 format and stores it to a microSD card. In turn, this MP3 file can be played by the audio codec.
  • BSP Version: M460 BSP CMSIS V3.00.001
  • Hardware: NuMaker-M467HJ V1.0
This example code uses audio codec to record sound. After encoding the sound data to MP3 format, the encoded data will be written to a microSD card.

To use this example code, user needs to prepare a microSD card and insert it into the T-Flash card slot. Then, user can press button BTN0 to start recording sound and press button BTN1 to stop recording. The MP3 file will be played automatically after the recording is finished or played when the button BTN1 is pressed. User can choose whether to record in real time by defining REC_IN_RT. If REC_IN_RT is defined, while the recording sound data is received, the data will be encoded to MP3 format and stored in the microSD card at the same time. Otherwise, if REC_IN_RT is not defined, the recording sound data will be stored in HyperRAM first until recording is stopped, and then the data will be encoded to MP3 format and stored in the microSD card.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 0531132955
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests