WebGL and Microphone

Also looking for WebGL microphone support! Only found out after I got it working in windows, then tried to build with WebGL.

Is there a timeline for this feature? Would be much appreciated!

@jukka_j Heads up on this issue, request for microphone support since 2015 lol.

We’re also looking for this for our application : )

Hey y’all, having the same need on my end. I found this. I have not tested it and won’t be testing it right away, but I found that it does compile. It looks like you need to wrap all of your pre-existing Microphone code in platform directives and use this for WebGL. It’s free and MIT.

https://github.com/tgraupmann/UnityWebGLMicrophone

1 Like

Thanks for the heads up. I recently rewrote our WebGL webcam backend. On the web, both webcam and microphones are accessed using the same JS API, so that rewrite might help out adding microphone support as well.

Added a TODO to investigate this.

Note that supporting extremely low latency timing sensitive recording on the web will be a no-go. On the web there is currently no good solution for a “realtime audio thread” that native C/C++/C# code could feasibly port to (there’s the now deprecated ScriptProcessorNode and new upcoming AudioWorklet, but they are not portability solutions, also not yet supported in all browsers).

7 Likes

If you finally fix Mic support for WebGL it will be epic. It’s been years…

3 Likes

This is great news. There is a large group awaiting this feature. Any timelines when you think this might become available? Web makes corporates adopt solutions more easily due to higher security. In this absence of it my solution takes the standalone exe, or native app approach which is a hindrance. Looking forward to this feature in Unity.

1 Like

How is the priority list coming along? :wink:
Interested in this feature…

Anyone have found a good sdk to use the microphone?

Seems close to what i am looking for, can you share the code or the asset?

+1, Looking forward for the support from Unity on this issue. Have been building WebGL based collaboration tool and usage of microphone is vital. We might have to switch to other tool or build target because of this issue

1 Like

Any update about this? As pointed out by many, it could be very useful.

they said it wasnt doable. ask here New for WebGL in Unity 2021.2 ??

I see you really meant it! :hushed:
After 10 years, this is a bit ridiculous. I have very little hope this will be of any use, but please. Consider doing it. I also wanted it.

Hey gfoot, do you have a new link for your Microphone wrapper code?

Dito…

Microphone for WebGL is very much needed!

Can you please make it a priority?

I would really appreciate it!

2 Likes

+1 for updates. Still wondering how people are surviving without Microphone on Webgl.

Is there an update with the Microphone for webgl?

A really great way that’ll help us prioritize supporting microphone for WebGL is adding/voting for it in productboard here: Platforms roadmap | Unity that way we can make a case for dedicating resources to it, especially given all the other big features we’re working on.