Condividi tramite


PhraseListGrammar.FromRecognizer(Recognizer) Method

Definition

Creates a phrase list grammar for the specified recognizer.

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

Parameters

recognizer
Recognizer

The recognizer from which to obtain the phrase list grammar.

Returns

The phrase list grammar.

Remarks

Not available in all languages. For a list of languages and sample code, see Get started with speech-to-text.

Applies to