So this question is more related to Matlab itself.
Some background info: I'm trying out the Exponential Sine Sweep method to obtain the Room Impulse Response with my laptop speakers and microphone for testing.
I can generate the Sine sweep perfectly but I have trouble playing and recording it without a lot of lag. I'm now trying to use "audioPlayerRecorder" from the Audio System Toolbox but when I do:
f1 = 80; % Start frequency (Hz)
f2 = 22000; % Stop frequency (Hz)
T = 3; % Sweep duration in seconds
fs = 44100; % Sampling frequency
[sweep, inverse] = ESS_generator(f1, f2, T, fs);
playRec = audioPlayerRecorder(fs);
recording = playRec(sweep);
I get an error on the last line saying: Error using coder.internal.assert (line 33) No full-duplex audio device detected
But I know that my laptop is able to use the microphone and speakers simultaneously so I'm thinking maybe the error gets thrown because of a missing configuration?
I'm running the code on Linux with the ALSA audio drivers. I'm using external speakers through the AUX audio port, and the default laptop microphone.
sox
in my case) does the recording. $\endgroup$