How does MATLAB sound function work?
Description. sound( y ) sends audio signal y to the speaker at the default sample rate of 8192 Hz. sound( y , Fs ) sends audio signal y to the speaker at sample rate Fs . sound( y , Fs , nBits ) uses nBits bits per sample for audio signal y .