2018/01/04

Matlab: play a sound file with command

To play a sound file with Matlab commands, type:

>> [y, fs] = audioread('filename.wav');
>> sound(y, fs)
>> plot([1:size(y)]/fs,y); %Plot waveform

>> xlabel('sec');

沒有留言:

張貼留言