I am using the Oculus VR (OVR) Lip Sync Plugin for an avatar in a Unity project which I want to deploy to a browser using WebGL.
The issue is that WebGL doesn't support Unity's Microphone
API. I know that some aspects of OVR Lip Sync use Microphone
for real-time Lip Sync of voice through a mic, but I just need it to generate Lip Sync from prerecorded audio files. This doesn't actually need a microphone but it seems to want to use the Microphone
API.
I tried commenting out the OVRLipSyncMicInput.cs class where it invokes the Microphone
API. The project works fine with lip sync in the Unity editor. The WebGL project builds and runs but the lip sync is not working.
The actual error I get when trying to build the project before commenting out the OVRLipSyncMicInput.cs class is: Assets\Oculus\LipSync\Scripts\OVRLipSyncMicInput.cs: error CS0103: The name 'Microphone' does not exist in the current context
Does anyone know if it is possible to get the OVR Lip Sync plugin to work with WebGL or if there is another way to deploy a Unity project to a browser?