Microphone namespace or type not found error when building a Unity application in WebGL which uses Wit.AI
jigyasaagarwal opened this issue · comments
I am trying to build an application for WebGL and I am using the Wit.AI package in it. When trying to Build the application, I am getting an error "Assets\wit-unity-0.0.39\Scripts\Runtime\Lib\Mic.cs(364,41): error CS0103: The name 'Microphone' does not exist in the current context" . Apparently, WebGL doesn't support the Microphone class of Unity. Can someone suggest me a solution for this?
Voice SDK and Wit-Unity do not currently support webgl. The next release of wit-unity will at least build in webgl and the messages endpoint will work (you can see this with TOT wit-unity now). We are investigating full mic support in webgl but do not have an eta when it will be available.
Thanks for the clarification regarding this. It would be great if you could mention this somewhere in the documentation or in the readme, which all deployment formats are supported currently, or if you have already mentioned it somewhere, I may have missed it. Because we are using wit-unity for our project, and it is now at the build stage where we realized it is not supported in the WebGL platform.
I removed the Mic support, and it compiled properly, loaded into WebGL, but is tossing streaming errors for PCM and unable to parse - is WebGL supported for TTS without Mic interaction yet?