KeywordRecognizer
Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.Windows.Speech
- Assembly: UnityEngine.CoreModule
KeywordRecognizer(string[])
Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.
public KeywordRecognizer(string[] keywords)
Parameters
The keywords that the recognizer will listen to.
Remarks
If no minimum confidence level is specified, then the confidence level is assumed to be Medium.
KeywordRecognizer(string[], ConfidenceLevel)
Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.
public KeywordRecognizer(string[] keywords, ConfidenceLevel minimumConfidence)
Parameters
The keywords that the recognizer will listen to.
The minimum confidence level of speech recognition that the recognizer will accept.
Remarks
If no minimum confidence level is specified, then the confidence level is assumed to be Medium.