2017/10/23

Matlab: Play an audio file with a directory

To play a sound file e.g. a wav file in a folder, type the following commands:

>> [y,Fs]= audioread('MyFolder/song.wav'); %Use slash for both Windows and Mac. Backslash works with Windows only.
>> sound(y,Fs);

沒有留言:

張貼留言