I am trying to play sound from MATLAB 6.5 (R13) under Linux RedHat 8.0 and I do not know why the sound produced is not the one expected. It is very noisy and has a low tone. I am using the SOUND command in MATLAB, for example:
load handel;sound(y, Fs) ;
I also noticed that whatever sampling frequency I use, the produced sound remains the same.
If I play a sound from any other music program on my Linux computer it sounds just fine. I can also play my sound file on a Windows machine and it works too.
On a Windows machine, a nice 'hallelujah' sound is produced. Now, if I run this same set of commands on my Linux machine, the sound is not pleasant, it is very noisy and I can hardly recognize the original 'hallelujah'. Furthermore, there is no change in sound speed, pitch, or quality when I change the sampling frequency (e.g. sound (y, 2*Fs)).
I also tried this on another Linux machine and the same poor quality sound was produced.
Best Answer