Using voice recognition in unity to "read" to the game
Hi, while I'm not new to Unity I would not say I'm extremely good at it. I want to use voice recognition via the player's mic to interact with the game. I've seen some examples on youtube that use some trigger words but nothing immensely complicated. Here's what I want to do:
Allow the player to read a paragraph of text out loud and the game to recognize when this has occurred (obviously background noise and accents are an issue but I can think about that later).
Here's how I've thought about doing it so far: -Player is given text, begins to read
-game listens to what the player is reading
-game has every single word in the text set as a trigger word
-each time one of those words triggers, a counter indicating the # of words from the text heard increases
-When the counter reaches the desired % of the total amount of words heard, the game recognizes that the text has been read (this is to counteract some words not being picked up, the game would only need to hear 80% or whatever)
Is there a better way to do this? Even then, how do I go about doing this? Are the voice recognition libraries good enough to do this?
Update: I've found the unity docs info on DictationRecognizer, GrammarRecognizer, and SpeechRecognizer but I'm a little overwhelmed as to how I should use them to accomplish this task
Your answer
Follow this Question
Related Questions
Android and iOS: using a non native offline TTS / Text to Speech Engine 0 Answers
How can I access the microphone data while running dictation recognizer? 0 Answers
How can i ask a user for their name? 1 Answer
How to add score to text when button down? 1 Answer
Unity 5 new UI Text truncated 2 Answers