Speech recognition doesn't work in Unity Hololens project

别说谁变了你拦得住时间么 提交于 2019-12-12 14:32:45

问题


I'm trying to create my own Unity project with speech recognition in Hololens. I copy pasted the instructions from tutorial.

Literally copy pasted the SpeechManager.cs file and SphereCommands.cs file to my project but it won't budge. I tried putting some sounds in: KeywordRecognizer_OnPhraseRecognized to see if I get there (even before invoking anything), but I don't.

I start the keywordRecognizer.Start() (also added sounds to make sure I was there) but I have no idea if it's working afterwards.

The machine itself works, because if I open the Origami program, it recognizes my voice without issues. Also, saying "Hey Cortana" from the program also works.

I would copy the code, but it's just the file from the tutorial (even the phrases).


回答1:


As Nikolay wrote in the comments, the answer is that I didn't enable the Microphone in the Unity Project (Edit -> Project Settings -> Player). I also had to remove the UWP directory and rebuild in Unity is it will be relevant.



来源:https://stackoverflow.com/questions/37552600/speech-recognition-doesnt-work-in-unity-hololens-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!