No audio input device detected

29 visualizaciones (últimos 30 días)
Jian Jia Tan
Jian Jia Tan el 25 de Oct. de 2018
setpref('dsp','portaudioHostApi',3);
microphone = audioDeviceReader('Driver', 'ASIO', 'SampleRate', 48000);
speaker = audioDeviceWriter('Driver', 'ASIO', 'SampleRate', 48000, 'BufferSize', 1024);
devicesIn = getAudioDevices(microphone)
devicesOut = getAudioDevices(speaker)
tic;
while (toc<30)
audio = microphone();
speaker(audio);
end
release(microphone);
release(speaker);
the above code resulted in the error 'No audio input device detected', even though i have an asio supported audio interface plugged in. How do I solve this problem?

Respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by