SpeechGrammarSet.AddGrammarFromList method

Applies to Windows Phone only

Creates a SpeechGrammar object by using a string array of values, and adds it to the speech grammar set.

Syntax


public SpeechGrammar AddGrammarFromList(
  string key, 
  IEnumerable<string> phrases
)

Parameters

key

Type: System.String [.NET] | Platform::String [C++]

The name of the grammar.

phrases

Type: IIterable<String> [C++] | System.Collections.Generic.IEnumerable<String> [.NET]

A string array of words or phrases that make up the grammar.

Return value

Type: SpeechGrammar

The grammar that is added to the speech grammar set.

Remarks

For more information about how to use the AddGrammarFromList method, see the Working with programmatic list grammars section of Adding, loading, and preloading grammars for Windows Phone , and the Managing loaded grammars to optimize recognition for Windows Phone topic.

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

ADD
Show:
© 2014 Microsoft