Audio analysis in WebGL
Hi, is there any chance to use the function AudioListener.GetSpectrumData() in a WebGL build in Unity. Thanks!
Comment
Answer by Crazy-Minnow-Studio · Apr 19, 2018 at 06:30 PM
Unfortunately not, but you can do this using native JavaScript to access the functionality in the underlying web browser. We created an asset to provide easy access to audio amplitude and spectrum data on WebGL so we could get our SALSA Lipsync system running on the WebGL platform.
This is where we learned it was possible.
https://forum.unity.com/threads/audioclip-getspectrumdata-in-webgl.321931/
This is the asset we offer if the direct approach is preferred (Amplitude for WebGL).
https://assetstore.unity.com/packages/tools/audio/amplitude-for-webgl-111277