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
)
Public Function AddGrammarFromUri(
  key As String,  
  grammarUri As Uri 
) As SpeechGrammar
public:
SpeechGrammar^ AddGrammarFromUri(
  String^ key, 
  Uri^ grammarUri
)

Parameters

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