real-time recording(audio) filtering

6 ビュー (過去 30 日間)
Frida Johansson
Frida Johansson 2017 年 9 月 22 日
回答済み: Brian Hannan 2017 年 9 月 26 日
Hi
I want to be able to record my voice and replay a filtered version. I found an old example where they used wavrecord and wavplay, which is no linger used in MatLab. Right now I use audiorecorder to record and use the method getaudiodata to receiev the data.
rec = audiorecorder;
disp('Start')
recordblocking(rec, 5);
disp('End');
data = getaudiodata(rec);
plot(data) %plot freq graph
Do I need convert to wav and the filter?

回答 (1 件)

Brian Hannan
Brian Hannan 2017 年 9 月 26 日
You can still play and filter the getaudiodata output. Use sound to play the recording. More info on this topic here.
There doesn't seem to be any need to do any kind of conversion. The getaudiodata output should have all the information you need for simple playback and filtering operations.
You may also be interested in using audioDeviceReader and audioDeviceWriter if you have access to the Audio System Toolbox.

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by