Interface SpeechRecognitionResultOrBuilder (4.29.0)

public interface SpeechRecognitionResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAlternatives(int index)

public abstract SpeechRecognitionAlternative getAlternatives(int index)

Output-only May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives).

repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionAlternative

getAlternativesCount()

public abstract int getAlternativesCount()

Output-only May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives).

repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Returns
TypeDescription
int

getAlternativesList()

public abstract List<SpeechRecognitionAlternative> getAlternativesList()

Output-only May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives).

repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Returns
TypeDescription
List<SpeechRecognitionAlternative>

getAlternativesOrBuilder(int index)

public abstract SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(int index)

Output-only May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives).

repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionAlternativeOrBuilder

getAlternativesOrBuilderList()

public abstract List<? extends SpeechRecognitionAlternativeOrBuilder> getAlternativesOrBuilderList()

Output-only May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives).

repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1beta1.SpeechRecognitionAlternativeOrBuilder>