Skip to main content
Up and Coming
July 27, 2023

Voice SDK for text-to-speech on WebGL

I'm trying to use the text-to-speech on WebGL. It seems the code does have defines for WebGL so it is supposed to work, but when I build I get the error:

Oculus\Voice\Lib\Wit.ai\Scripts\Runtime\WitRequest.cs(360,13): error CS0103: The name 'StartUnityRequest' does not exist in the current context

The code that throws the error:

#if UNITY_WEBGL && !UNITY_EDITOR
       StartUnityRequest(uri, headers);
#else

It seems StartUnityRequest is not defined anywhere. Did they forget to include some code in the newest version?

    This topic has been closed for replies.

    2 replies

    New Participant
    February 3, 2024

    I'm getting the same error, did you find a solution?

    TamulurAuthor
    Up and Coming
    February 4, 2024

    Unfortunately not. I don't use Meta's TTS on WebGL.