Fs = 8000; Duration = 10; y = wavrecord(Duration*Fs, Fs);