wit-ai / wit-unity

Wit-Unity is a Unity C# wrapper around the the Wit.ai rest APIs and is a core component of Voice SDK.
Other
78 stars 20 forks source link

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

Open jigyasaagarwal opened 1 year ago

jigyasaagarwal commented 1 year ago

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?

yolanother commented 1 year ago

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.

jigyasaagarwal commented 1 year ago

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.

mattfedo-insight commented 10 months ago

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?