PhraseListGrammar Class

Definition

Allows additions of new phrases to improve speech recognition.

Phrases added to the recognizer are effective at the start of the next recognition, or the next time the SpeechSDK must reconnect to the speech service. Added in version 1.5.0.

public class PhraseListGrammar extends Grammar
Inheritance
java.lang.Object
Closeable
PhraseListGrammar

Inherited Members

Methods

addPhrase(String phrase)

Adds a single phrase to the current recognizer.

clear()

Clears all phrases added to the current recognizer.

close()

Dispose of associated resources.

fromRecognizer(Recognizer recognizer)

Creates a PhraseListGrammar from a given speech recognizer. Will accept any recognizer that derives from Recognizer.

Applies to