It is very easy to play some demo sounds with Matlab commands using the sound function.
To play a female speaker saying 'Matlab' type:
>> load mtlb
>> sound(mtlb,Fs)
Note that the workspace contains mtlb and Fs, so sound(mtlb,Fs) is called.
You may clear the workspace with the the clear command:
>> clear
To play a snippet of Handel's Hallelujah Chorus, type:
>> load handel
>> sound(y,Fs)
There are also other sounds you may load:
load chirp
load gong
load laughter
load train
References:
Formant Estimation with LPC Coefficients
Record and Play Audio
Sound + FFT
沒有留言:
張貼留言