Interface SpeechContextOrBuilder (4.6.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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>