Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago.
Samples of an audio file
I need to do obtain the samples of .wav files using. Is there a way of presenting these samples. The .wav audio files are all placed in an sd card.
2 Answers
8 years ago.
This library https://os.mbed.com/users/sravet/code/wave_player/ can read .wav files. The current version outputs the samples to an analog out pin but it should be fairly simple to modify it to output them to your program instead.
The alternative would be to use a PC application to convert the .wav file to a list of raw samples either in binary or text which would then be easy to read in your program.
Hello, thanks for your comment. I will have a play with this library, I would rather to not use a PC application, as I would like to build a real time embedded system without the contribution of another party such as a PC. Would you please refer me to a work of someone else that you might know of that might have achieved the samples of a wav file through manipulating this library.
posted by 08 Nov 2017