在Linux Matlab中利用声卡采集声音

在Linux Matlab中利用声卡采集声音,需要用到audiorecorder函数(在windows中是wavrecord),

r = audiorecorder(44100, 16, 1); %采样率,采样位数,,单声道record(r); % speak into microphone…调用record方法的时候开始录音pause(r);p = play(r); % listenresume(r); % speak againstop(r);p = play(r); % listen to complete recordingmySpeech = getaudiodata(r, ‘int16’); % get data as int16 array

所有欺骗中,自欺是最为严重的

在Linux Matlab中利用声卡采集声音

相关文章:

你感兴趣的文章:

标签云: