Sign in

How can I compare a I2S audio recording to an existing audio file?


Once you have captured I2S audio data and have configured the I2S protocol analyzer successfully, you will need to export the I2S protocol results to a CSV file. You will then need to convert the reference WAV file to CSV. Once both the capture and the reference file are in the CSV format, they can be compared using excel.

There are many ways to convert a WAV file to a CSV file and vise versa. If you are using MATLAB, there are built in functions for this. There are also a number of examples of this online in a number of languages.

In practice, this may prove difficult, especially if the beginning of the recorded I2S audio data does not correspond to the beginning of the WAV file. You may wish to convert the captured data to a WAV file and then compare the wave shapes using audio editing software, such as Audacity.

If the sample rates are not matched between the files, I would recommend using MATLAB if possible to perform resampling or other filtering or transforms required.

trello ID: 55f0ec389b6fb9780dd41e44
Have more questions? Submit a request