real-time recording(audio) filtering

6 Ansichten (letzte 30 Tage)
Frida Johansson
Frida Johansson am 22 Sep. 2017
Beantwortet: Brian Hannan am 26 Sep. 2017
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?

Antworten (1)

Brian Hannan
Brian Hannan am 26 Sep. 2017
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.

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by