共用方式為


GrammarList.FromRecognizer(Recognizer) Method

Definition

Creates a grammar list for the specified recognizer.

public static Microsoft.CognitiveServices.Speech.GrammarList FromRecognizer (Microsoft.CognitiveServices.Speech.Recognizer recognizer);
static member FromRecognizer : Microsoft.CognitiveServices.Speech.Recognizer -> Microsoft.CognitiveServices.Speech.GrammarList
Public Shared Function FromRecognizer (recognizer As Recognizer) As GrammarList

Parameters

recognizer
Recognizer

The recognizer from which to obtain the grammar list.

Returns

The grammar list associated with the recognizer.

Remarks

Creating a grammar list from a recognizer is only usable in specific scenarios and is not generally available.

Applies to