Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jigyasaagarwal opened this issue Nov 15, 2022 · 3 comments

Comments

@jigyasaagarwal
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants