I'm using the Web Audio Api ( navigator.getUserMedia({audio: true}, function, function) ) for audio recording.
If the user has several microphone devices, can I select the desired recording device?
I've came across a problematic situation where a brand new Dell laptop (running Windows 8.1) has 2 microphone devices (on board and external) and the external device was set to default (set to default by the operation system).
As expected, when recording, the input comes from the external microphone which means - silence - no actual input.
Can I work around this technologically and capture the audio from the on board device?
While searching I found this question which talks about detecting the sound card.
From the answer:
You have no control over the latency. You have no way of detecting 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've also found that regardless of what is on the other side, Chrome will only open up a stereo channel. (It will also treat mono devices as stereo, copying the first channel to both L and R channels.) Firefox has similar issues.
Recording devices screenshot - http://i.stack.imgur.com/jUrCw.jpg (can't add the actual photo yet)
Would appreciate suggestions.
Thanks! Avi.