SpeechRecognizer.SupportedGrammarLanguages Property

Definition

Gets the collection of languages supported by the custom grammars of the SpeechRecognitionGrammarFileConstraint and SpeechRecognitionListConstraint objects specified in the Constraints property.

public:
 static property IVectorView<Language ^> ^ SupportedGrammarLanguages { IVectorView<Language ^> ^ get(); };
static IVectorView<Language> SupportedGrammarLanguages();
public static IReadOnlyList<Language> SupportedGrammarLanguages { get; }
var iVectorView = SpeechRecognizer.supportedGrammarLanguages;
Public Shared ReadOnly Property SupportedGrammarLanguages As IReadOnlyList(Of Language)

Property Value

The collection of grammar languages.

Remarks

Constraints, or grammars, define the spoken words and phrases that can be matched by the speech recognizer. You can specify one of the pre-defined, web-service grammars or you can create a custom grammar, described here, that is installed with your app (speech recognition using a custom constraint is performed on the device).

  • Programmatic list constraints provide a lightweight approach to creating simple grammars using a list of words or phrases. A list constraint works well for recognizing short, distinct phrases. Explicitly specifying all words in a grammar also improves recognition accuracy, as the speech recognition engine must only process speech to confirm a match. The list can also be programmatically updated.
  • A Speech Recognition Grammar Specification (SRGS) grammar is a static document that, unlike a programmatic list constraint, uses the XML format defined by the Version 1.0. An Speech Recognition Grammar Specification (SRGS) grammar provides the greatest control over the speech recognition experience by letting you capture multiple semantic meanings in a single recognition.

Applies to

See also