Seb
Seb

Reputation: 152

Getting microphone info with WebAudio API

I want to be able to see which microphone WebAudio API picked up when it returns the MediaStream. It would be even better if I could select the microphone when more than one is available.

Is there any way to do this?

Thanks

Upvotes: 1

Views: 89

Answers (1)

cwilso
cwilso

Reputation: 13908

There is, but it only works when your page is served securely (i.e. https:// instead of http://). (this is common with new security-sensitive apis.)

Check out https://webaudiodemos.appspot.com/input/index.html - the select dropdown lets you choose inputs.

Upvotes: 3

Related Questions