How to use audio file in Matlab?
Write an Audio File
wav ) file in the current folder. Read the data back into MATLAB using audioread . [y,Fs] = audioread(filename); Listen to the audio.
What does the sound command do in Matlab?
sound (MATLAB Functions) sound(y,Fs), sends the signal in vector y (with sample frequency Fs ) to the speaker on PC and most UNIX platforms. Values in y are assumed to be in the range . Values outside that range are clipped.