Capture microphone using GetUserMedia - html5-audio

I am using GetUserMedia to capture user input(audio) through microphone on Chrome, but the problem is that now I want to capture the input from independent microphone (not local one built-in pc). Does anyone know how can I do that?

Try changing the default input in your system settings.

I guess currently Chrome allows audio input capture only through built-in microphone.

Related

System Sound as Input (Web Audio API)

Is there any way to take the system's sound as an input for the Web Audio API?
For example take a user's spotify music that is playing as an input and analyze it to do stuff with it?
There is a specification which almost does what you want. It's the counterpart of the Media Capture and Streams spec (aka getUserMedia()).
navigator.mediaDevices.getDisplayMedia();
The spec is called Screen Capture and as the name implies it is meant for capturing video and not audio. Capturing audio is optional and not yet supported by any browser if I recall correctly.
There is currently an open issue discussing audio-only support. Maybe it's a good idea to share your use case there.

Chrome extension capturing audio from various conference softwares

I want to create a chrome extension that will capture audios coming from meetings that use Zoom, Go-to-meetings, Uberconference..etc. It will capture audio from those apps and also capture audio from the microphone.
I think I am able to capture audio coming from the desktop and microphone but if users have their headphone on, then I wouldn't be able to capture the audio from the desktop.
Anyone have a good solution for this?
You should be able to use the tab capture API.
https://developer.chrome.com/extensions/tabCapture

How does Chrome know which tabs are playing sound?

How does chrome know which tabs are playing some sound? Alternatively, how does chrome know which tabs to put the speaker sign on?
This article may be useful:
From ghacks.net:
"Google Chrome uses an internal version of Adobe Flash which Google can use to determine when Flash is being used for audio playback.
Mozilla does not have that luxury. While it is working on a patch to display indicators when HTML5 is being used for audio playback, it cannot do anything about plug-in contents on its own."
Assuming that's correct, then from there it's not hard to imagine that if they know of every single instance of flash being used for audio playback, that they probably have an associated property indicating which tab it is on.

HTML5 getUserMedia() for multiple microphones

Is there any way that we can use getUserMedia() of HTML5 to take audio input from a specific microphone, and not just the default one?
You will need to use the getSources API which is as of yet not that well supported I'm afraid. I think that Chrome has a version of it available hidden behind a configuration flag, but other than that there's nothing that you can do other than wait.
Not the answer you wanted to hear I know, sorry.

Browser based audio capture, then post to server side

Working on a project that will need browser / device cross compatible audio recording (video is not required, but may utilise camera audio inputs). Thinking some kind of HTML5 and flash fallback (for idevices / IE / old browsers etc).
The HTML5 demos I have found dont seem to work. Can confirm my mic works in my OS
http://webaudiodemos.appspot.com/AudioRecorder/index.html (doesnt seem to pickup audio, however saving file works but it just plays no sound)
http://www.html5rocks.com/en/tutorials/getusermedia/intro/ (wont even prompt me for access to mic)
Also I have found a nice flash example here (http://www.jordansthings.com/blog/?p=5) but I am not a flash dev.
Wondered if there was some kind of API / library with fallbacks, that also allowed not only capture, but posting this to a server side script for further processing. Eg user presses a button, starts speaking, presses stop, then sends that file to the server rather than daving the file to client.
So my question(s):
Is there an audio capture API / library that would handle all of this for me including fallbacks
Is it possible to send the captured audio to the server without clunky save + upload
Does anyone have some nice working examples of either html5 or flash?
It should be easy to create your own solution using the following:
https://code.google.com/p/wami-recorder/
It's a flash recorder with an javascript interface.
Check SO for examples, alternatives etc:
https://stackoverflow.com/search?q=https%3A%2F%2Fcode.google.com%2Fp%2Fwami-recorder%2F