real-time recording(audio) filtering

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Audio 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