class StreamingRecognitionResult extends Message

A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.

Protobuf type Google\Cloud\Speech\V1beta1\StreamingRecognitionResult

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).

bool
getIsFinal()

Output-only If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

setIsFinal(bool $var)

Output-only If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

float
getStability()

Output-only An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable).

setStability(float $var)

Output-only An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable).

Details

at line 47
__construct()

at line 59
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 71
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

at line 87
bool getIsFinal()

Output-only If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

Generated from protobuf field bool is_final = 2;

Return Value

bool

at line 102
setIsFinal(bool $var)

Output-only If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

Generated from protobuf field bool is_final = 2;

Parameters

bool $var

at line 118
float getStability()

Output-only An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable).

This field is only provided for interim results (is_final=false). The default of 0.0 is a sentinel value indicating stability was not set.

Generated from protobuf field float stability = 3;

Return Value

float

at line 133
setStability(float $var)

Output-only An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable).

This field is only provided for interim results (is_final=false). The default of 0.0 is a sentinel value indicating stability was not set.

Generated from protobuf field float stability = 3;

Parameters

float $var