Interface SpeechContextOrBuilder (4.40.0)

public interface SpeechContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPhrases(int index)

public abstract String getPhrases(int index)

Optional A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

repeated string phrases = 1;

Parameter
Name Description
index int
Returns
Type Description
String

getPhrasesBytes(int index)

public abstract ByteString getPhrasesBytes(int index)

Optional A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

repeated string phrases = 1;

Parameter
Name Description
index int
Returns
Type Description
ByteString

getPhrasesCount()

public abstract int getPhrasesCount()

Optional A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

repeated string phrases = 1;

Returns
Type Description
int

getPhrasesList()

public abstract List<String> getPhrasesList()

Optional A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

repeated string phrases = 1;

Returns
Type Description
List<String>