Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DictationRecognizer Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public DictationRecognizer()
public DictationRecognizer();
public DictationRecognizer(confidenceLevel: Windows.Speech.ConfidenceLevel)
public DictationRecognizer(Windows.Speech.ConfidenceLevel confidenceLevel);
public DictationRecognizer(topic: Windows.Speech.DictationTopicConstraint)
public DictationRecognizer(Windows.Speech.DictationTopicConstraint topic);
public DictationRecognizer(minimumConfidence: Windows.Speech.ConfidenceLevel, topic: Windows.Speech.DictationTopicConstraint)
public DictationRecognizer(Windows.Speech.ConfidenceLevel minimumConfidence, Windows.Speech.DictationTopicConstraint topic);

Parameters

minimumConfidence The confidence level at which the recognizer will begin accepting phrases.
topic The dictation topic that this dictation recognizer should optimize its recognition for.

Description

Create a DictationRecognizer with the specified minimum confidence and dictation topic constraint. Phrases under the specified minimum level will be ignored.

Default confidence level is Medium. Default dictation topic constraint is Dictation.