Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SpeechGrammarSet.AddGrammarFromUri method

Applies to Windows Phone only

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

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

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

 

 

Community Additions

Show:
© 2014 Microsoft