AddGrammarFromUri method

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: System.String [.NET] | Platform::String [C++]

The name of the grammar.

grammarUri

Type: System.Uri [.NET] | Windows::Foundation::Uri [C++]

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.

Remarks

For more information about how to use the AddGrammarFromUri method, see the Providing the speech recognizer with a grammar section of Adding, loading, and preloading grammars for Windows Phone .

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.Speech.Recognition
Windows::Phone::Speech::Recognition [C++]

Metadata

Windows.WinMD

Capabilities

ID_CAP_SPEECH_RECOGNITION [Windows Phone]
ID_CAP_MICROPHONE [Windows Phone]
ID_CAP_NETWORKING [Windows Phone]

See also

SpeechGrammarSet

 

 

Show:
© 2017 Microsoft