06-27-2024 03:06 AM
Hey all,
I'm trying to build my project to WEBGL, for this, I have disabled all VR elements and put in a first-person controller. It's meant to be something the client can test without having to set up their VR constantly, and its useful for me to roll out features to get them tested.
but for some reason, it has stopped building and I get the following error:
Library\PackageCache\com.meta.xr.sdk.voice@66.0.0\Lib\Wit.ai\Scripts\Runtime\Utilities\VoiceLipSyncMic.cs(49,21): error CS1061: 'Mic' does not contain a definition for 'SetAudioSampleRate' and no accessible extension method 'SetAudioSampleRate' accepting a first argument of type 'Mic' could be found (are you missing a using directive or an assembly reference?)
From what I'm gathering, when Unity builds to WebGL, meta switches out the Mic class for a WebGL version, that's fine, except that the webGL version does not have the SetAudioSampleRate Function.
this function is called in the VoiceLipSyncMic class on Awake.
I understand it's not meant to be compatible, but surely there is a way to remove the VoiceLipSyncMic script, as I don't use the microphone.
I'm using the Meta XR All-in-One SDK from the Unity asset store. is there a fix for this?
06-27-2024 03:43 AM
So I decided to test out uninstalling the all in one SDK, and then reinstall all the packages manually except for the voice SDK, this seems to have resolved the issue, it was a pain, but I didn't have any issues and as long as you don't touch any files it should just be a unplug and plug back in procedure.
After i had a few bugs but most where fixable in a line or two.