Search code examples
c#unity-game-enginehololensmrtkwindows-mixed-reality

Disable general speech commands in Hololens


I am making an application with Unity and MRTK for Hololens 2.

I would like to know if it is possible to disable general speech commands.

That is, I want to keep my own voice commands that I have created but I don't want phrases like "Take a picture", "Take a video".... to be recognized.

I've searched the internet but haven't found anything about it.

Does anyone know if there is an option to do this?


Solution

  • Speech commands in the Unity UWP app are powered by the same engine that supports speech in Windows 10 System. It means if you disable the Speech feature in Settings > Privacy > Speech, the speech recognition will no longer be available in your Unity app. Apart from this, HoloLens does not provide any way to allow you to modify system commands for now. Therefore, it is recommended you avoid using system commands in your app, or consider using the Unity plug-in for the Cognitive Speech Services SDK or other third-party speech engines.