SpeechGrammarSet.AddGrammarFromUri Method

Creates a SpeechGrammar object by using a SGRS grammar file, and adds it to the speech grammar set.

Syntax

public:
SpeechGrammar^ AddGrammarFromUri(
         String^ key,
         Uri^ grammarUri
)  

Parameters

key
Type: String 

 The name of the grammar.

grammarUri
Type: Uri 

 An absolute path Uniform Resource Identifier (URI) to the SGRS grammar file.

Return value

Type: SpeechGrammar 

The grammar that is added to the speech grammar set.

Requirements

Namespace: Windows.Xbox.Speech.Recognition

Metadata: windows.winmd

See also

Reference

SpeechGrammarSet Class

SpeechGrammarSet Members

Windows.Xbox.Speech.Recognition Namespace