No audio input device detected

조회 수: 29 (최근 30일)
Jian Jia Tan
Jian Jia Tan 2018년 10월 25일
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?

답변 (0개)

카테고리

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