The example loads raw audio data to your board's flash and then plays on the host PC over USB.
- Flash the board, and ensure the target's auxiliary USB is plugged into the PC.
- Open a program like Audacity, select microphone(Mbed audio) as an audio source and record sample.
- Play the the recorded sound.
Note: This example should work whitout any modifications on the NXP FRDM-K64F
, which has 1 MB
of flash memory.
Note: If you are using a board that has less than 1 MB
of flash memory, delete data from the end of the data
array, and set NUM_ELEMENTS
accordingly until the program size is small enough to flash without exceeding storage.
MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.