MATLAB: Does the output sound using ‘audioplayer’ or ‘soundsc’ not match with the sound I recorded

MATLAB

I am recording an audio signal using a microphone connected to the data acquisition board Measurement Computing USB 1616-fs. I tried using both 'audioplayer' and 'soundsc' for playback, however the playback did not sound anything like what I recorded. How do I resolve this issue?

Best Answer

The sound could be dismorphed due to a sampling rate mismatch between the acquisition device and the playback device.
1. In the data acquisition session 's', check the sampling rate as follows: 
>> s.Rate
2. Use 'Fs' argument to specify the same sampling rate when you use 'sound', 'soundsc' or 'audioplayer'.