StreamingRecognitionResult
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
No description
Output-only May contain one or more recognition hypotheses (up to the
maximum specified in max_alternatives
).
Output-only May contain one or more recognition hypotheses (up to the
maximum specified in max_alternatives
).
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.
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.
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).
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;
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;
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;
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;
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;
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;