How can I do real-time audio processing using simulink & DSP System toolbox??

1 回表示 (過去 30 日間)
Gun-min Kim
Gun-min Kim 2012 年 5 月 15 日
am currently process speech signal with recording simultaneously.
More specifically,
(1) Record every 0.1s speech repeatedly.
(2) Process each speech chunk(0.1s) as FIFO sense. (let say processing function 'test') 'test' function takes about 1s for processing each chunk of speech.
I wrote the code as follows :
r = audiorecorder(fs,16,1);
record(r,0.1);
data{k} = getaudiodata(r);
test(data{k});
The problem is that I miss sample of 1s speech during 'test' function is executed. I want recording to be executed without stop, and call the function 'test' in every 0.1s speech recording.
Some advisor said that real-time audio processing is possible by using 'DSP System Toolbox' in simulink. Is there anyone let me know how can I build such real time audio processing system using simulink? I really appreciate all of your comments.
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 5 月 16 日
Do you eventually want to output the processed data back to the soundcard?

サインインしてコメントする。

採用された回答

Wayne King
Wayne King 2012 年 5 月 16 日
Have you tried to use the System objects, dsp.AudioRecorder and dsp.AudioFileReader? They are MATLAB object implementations of the Simulink blocks.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApplications についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by