How to add a speech recognition project in Unity?

I am currently working on the Augmented Reality project using Vuforia, which uses speech recognition to control objects in Unity. I was just expecting a tutorial, but I can't find it. Could you advise me where to start? Your help is much appreciated!

+4
source share
2 answers

Unity has not yet been created. They have been doing research for a long time, and this is likely to be added to Unity soon. You can get a working Speech-to-Text (free) from the Assets store here . It is open source and you can help contribute to it if you find any problems.

As a side note, almost every OS has a speech recognition API. You easily create a plugin by wrapping all these APIs in a sing class in C #, then use the Unity platform preprocessor directives to determine which one to call, depending on the OS on which your game is running.

Android

SpeechRecognizer class.

IOS

SFSpeechRecognizer class

MacOS

NSSpeechRecognizer class

Window

SpeechRecognitionEngine class

Example:

class CrazySpeechRecognition { #if UNITY_ANDROID Use SpeechRecognizer class #endif #if UNITY_IOS Use SFSpeechRecognizer class #endif #if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX Use NSSpeechRecognizer class #endif #if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN Use SpeechRecognitionEngine class #endif } 

Unity's free Speech-to-Text was supposed to solve your problem. The rest of the message should tell you that you can make a plugin for this if there is a problem with that from Unity.

+12
source

You can try the Watson Unity SDK: https://github.com/watson-developer-cloud/unity-sdk ^ in particular ExampleSpeechToText

+2
source

Source: https://habr.com/ru/post/1264973/


All Articles