4 years, 2 months 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

4 years, 2 months ago.

You can use matlab software to get the sample values and analysis.

I have already done a Matlab code that had plenty of manipulations associated with the samples of the audio signal and my aim is to implement these manipulations on a real time embedded system.

posted by hafed khalil 08 Nov 2017
4 years, 2 months 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 hafed khalil 08 Nov 2017