UnityWebGLMicrophone
ForkForked from tgraupmann/UnityWebGLMicrophone
Enables WebGL builds to use Unity's standard Microphone API for audio input capture. Provides seamless integration with the native `UnityEngine.Microphone` interface, requiring only minimal initialization and update calls in your scene. Ideal for web-based games and applications that need microphone functionality without platform-specific code.
Unity Project
Built with Unity 5.6.2f1 · download the source from GitHub

README
UnityWebGLMicrophone
WebGL Microphone module for Unity

This package provides a WebGL module that allows the UnityEngine.Microphone API to be used on the WebGL with the sample interface.
That is, with one exception as the following script is needed in the scene to relay Microphone updates from WebGL to C#.
#if UNITY_WEBGL && !UNITY_EDITOR
void Awake()
{
Microphone.Init();
Microphone.QueryAudioInput();
}
#endif
#if UNITY_WEBGL && !UNITY_EDITOR
void Update()
{
Microphone.Update();
}
#endif
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In