필터 지우기
필터 지우기

matlab set my audio device as an output, can i set it as a input to use my headset's microphone

조회 수: 2 (최근 30일)
Hello ,
i want to record sound with 2 differents microphones, when i use the fonction : "audiodevinfo", matlab doesn't see neither my headset's microphone (jack) nor my external's mircophone (USB) as input .
Given that, jack audio device ins an input and an output, matlab defines it as an output
Do you know how can i transform the audio output into a input?
Fanny

답변 (1개)

Amish
Amish 2024년 5월 20일
Hi Fanny,
Transforming an audio output to an input within the MATLAB environment or through the "audiodevinfo" function isn't directly possible. This is because the designation of a device as either an input or an output device is determined by the host operating system and the device drivers, not by MATLAB itself.
Therefore, you will need to go and check in your corresponding Operating System's sound settings to make sure that the microphones are recognized and enabled as input devices.
In case, MATLAB still does not recognise your devices correctly while they are being correctly recognised by the OS, try using the "audiorecorder" function to manually force the recording device. This can be done as following:
recObj = audiorecorder(SamplingRate, BitDepth, NumChannels, DeviceID);
Replace the "DeviceID" with the ID of your required device.
Additionally, you can find the documentation link here: https://www.mathworks.com/help/matlab/ref/audiorecorder.html
Hope this helps!

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by