Speech Recognition
The Speech Recognition API functionality is currently limited to two simple method calls. It may potentially be expanded in the future to support complex custom grammar trees.
Usage
Generic Speech
If you want to listen for any speech you can use the below method. It should be noted that this method yields a low accuracy result, and isn't perfect. You should search the returned string for keywords.
SpeechRecognitionResult
SpeechRecognition passes the SpeechRecognitionResult type which has the following parameters.
Phrases
If you want the game to only match to certain words you can pass a list of choices that the game can use to match the users input to a string, Limiting the pool of results.
Note that the list of choices can be any IEnumerable<string>
type.