SpeechGrammarSet.AddGrammarFromList method

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
)
Public Function AddGrammarFromList(
  key As String,  
  phrases As IEnumerable(Of String) 
) As SpeechGrammar
public:
SpeechGrammar^ AddGrammarFromList(
  String^ key, 
  IIterable<String^>^ phrases
)

Parameters

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

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