class SpeechRecognitionResult extends Message

A speech recognition result corresponding to a portion of the audio.

Protobuf type Google\Cloud\Speech\V1beta1\SpeechRecognitionResult

Methods

__construct()

No description

RepeatedField
getAlternatives()

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

setAlternatives(array|RepeatedField $var)

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

Details

at line 26
__construct()

at line 38
RepeatedField getAlternatives()

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

Generated from protobuf field repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Return Value

RepeatedField

at line 50
setAlternatives(array|RepeatedField $var)

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

Generated from protobuf field repeated .google.cloud.speech.v1beta1.SpeechRecognitionAlternative alternatives = 1;

Parameters

array|RepeatedField $var