wit-unity icon indicating copy to clipboard operation
wit-unity copied to clipboard

Microphone namespace or type not found error when building a Unity application in WebGL which uses Wit.AI

Open jigyasaagarwal opened this issue 2 years ago • 3 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?

jigyasaagarwal avatar Nov 15 '22 05:11 jigyasaagarwal

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.

yolanother avatar Nov 15 '22 16:11 yolanother

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.

jigyasaagarwal avatar Nov 21 '22 13:11 jigyasaagarwal

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?

mattfedo-insight avatar Aug 21 '23 21:08 mattfedo-insight