- 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
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