Nuvoton
/
NuMaker-mbed-AudioPlayback-example
NuMaker audio playback
README.md@10:ca032f77d721, 2017-12-06 (annotated)
- Committer:
- csyang2
- Date:
- Wed Dec 06 20:57:15 2017 +0800
- Revision:
- 10:ca032f77d721
- Parent:
- 5:492ea7d38e59
- Child:
- 11:f7e6e67bbb92
Support NUMAKER_PFM_M487 and NUMAKER_PFM_NANO130
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
csyang2 |
10:ca032f77d721 | 1 | # Getting started sample with Audio Codec on Mbed OS |
ccli8 |
1:c3f10403b3db | 2 | |
csyang2 |
10:ca032f77d721 | 3 | This is an example to play and/or record then play PCM using Audio Codec with [NuMaker mbed Audio](https://github.com/OpenNuvoton/NuMaker-mbed-Audio) library. |
ccli8 |
1:c3f10403b3db | 4 | |
csyang2 |
10:ca032f77d721 | 5 | ### CLI |
csyang2 |
10:ca032f77d721 | 6 | Record then 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 | |
csyang2 |
10:ca032f77d721 | 18 | Record then play PCM buffer with "NUMAKER_PFM_M487". |
csyang2 |
10:ca032f77d721 | 19 | Default is a 8kHz mono 16-bit PCM buffer. |
csyang2 |
10:ca032f77d721 | 20 | 1. mbed target "NUMAKER_PFM_M487" |
csyang2 |
10:ca032f77d721 | 21 | 2. mbed toolchain "GCC_ARM" |
csyang2 |
10:ca032f77d721 | 22 | 3. mbed compile |
csyang2 |
10:ca032f77d721 | 23 | |
ccli8 |
1:c3f10403b3db | 24 | Please note that we need a headphone to hear the result. |
ccli8 |
1:c3f10403b3db | 25 | |
ccli8 |
1:c3f10403b3db | 26 | ### Burn Code & Execute |
ccli8 |
1:c3f10403b3db | 27 | 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "MBED" disk. |
ccli8 |
1:c3f10403b3db | 28 | 2. Copy the built binary file into "MBED" disk on you PC. |
ccli8 |
1:c3f10403b3db | 29 | 3. Press reset button to execute, user could test Audio Codec. |