NuMaker audio playback

Committer:
csyang2
Date:
Wed Mar 29 05:49:41 2017 +0000
Revision:
5:492ea7d38e59
Parent:
1:c3f10403b3db
Child:
10:ca032f77d721
2017.03.29; main.cpp; 1. Use format() to set sampling rate, channel count and sample bit length. (default is 8000Hz mono 16-bit); 2. Add record feature.; ; README.md; 1. Rename Audio Codec as NAU8822L.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 1:c3f10403b3db 1 # Getting started sample with Audio Codec on mbed OS
ccli8 1:c3f10403b3db 2
csyang2 5:492ea7d38e59 3 This is an example to play and record PCM using Audio Codec NAU8822L with [NuMaker mbed Audio](https://github.com/OpenNuvoton/NuMaker-mbed-Audio) library.
ccli8 1:c3f10403b3db 4
ccli8 1:c3f10403b3db 5 ### mbed CLI
ccli8 1:c3f10403b3db 6 Play PCM file with "NUMAKER_PFM_NUC472".
csyang2 5:492ea7d38e59 7 Default is a 8kHz mono 16-bit PCM file.
ccli8 1:c3f10403b3db 8 1. mbed target "NUMAKER_PFM_NUC472"
ccli8 1:c3f10403b3db 9 2. mbed toolchain "GCC_ARM"
ccli8 1:c3f10403b3db 10 3. mbed compile
ccli8 1:c3f10403b3db 11
ccli8 1:c3f10403b3db 12 Play PCM buffer with "NUMAKER_PFM_M453".
csyang2 5:492ea7d38e59 13 Default is a 8kHz mono 16-bit PCM buffer.
ccli8 1:c3f10403b3db 14 1. mbed target "NUMAKER_PFM_M453"
ccli8 1:c3f10403b3db 15 2. mbed toolchain "GCC_ARM"
ccli8 1:c3f10403b3db 16 3. mbed compile
ccli8 1:c3f10403b3db 17
ccli8 1:c3f10403b3db 18 Please note that we need a headphone to hear the result.
ccli8 1:c3f10403b3db 19
ccli8 1:c3f10403b3db 20 ### Burn Code & Execute
ccli8 1:c3f10403b3db 21 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "MBED" disk.
ccli8 1:c3f10403b3db 22 2. Copy the built binary file into "MBED" disk on you PC.
ccli8 1:c3f10403b3db 23 3. Press reset button to execute, user could test Audio Codec.