Microphone WebGL Library code example
Example: Microphone WebGL Library
#if UNITY_WEBGL && !UNITY_EDITOR
void Awake()
{
Microphone.Init();
Microphone.QueryAudioInput();
}
#endif
#if UNITY_WEBGL && !UNITY_EDITOR
void Update()
{
Microphone.Update();
}
#endif