Web audio Api input from a specific microphone

I am using Web Audio Api (navigator.getUserMedia ({audio: true}, function, function)) for audio recording.

If the user has several microphone devices, is it possible to select the desired recording device?

I encountered a problem situation when a new Dell laptop (running Windows 8.1) has 2 microphone devices (on the board and an external one), and the external device was installed by default (installed by default by the operating system).

As expected, when recording, the input comes from an external microphone, which means - silence - no actual input.

Can I get around this technology and capture sound from an on-board device?

During the search, I found this question , which refers to the detection of a sound card.

From the answer:

You have no control over the delay. You have no way to detect the actual sound device. All you can determine is if the browser gives you access to the audio channels and how many of them. I also found that no matter what is on the other side, Chrome will only open the stereo channel. (He will also consider mono devices as stereo, copying the first channel to both channels L and R). Firefox has similar problems.

Screenshot of recorders - http://i.stack.imgur.com/jUrCw.jpg (cannot add actual photo yet)

Would thank the suggestions.

Thank! Avi

+4
source share
3 answers
+1

deviceid. @cwilso https://webaudiodemos.appspot.com/input/index.html - , Chrome. , Chrome .

Firefox deviceIds , . firefox , " " ( , , ). , Allow https, ( Chrome).

+2

All Articles