Class: Google::Cloud::Speech::V1p1beta1::StreamingRecognitionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#alternativesArray<Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>

Returns Output only. May contain one or more recognition hypotheses (up to the maximum specified in +max_alternatives+). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

Returns:

  • (Array<Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>)

    Output only. May contain one or more recognition hypotheses (up to the maximum specified in +max_alternatives+). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.



570
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 570

class StreamingRecognitionResult; end

#is_finaltrue, false

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

Returns:

  • (true, false)

    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.



570
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 570

class StreamingRecognitionResult; end

#stabilityFloat

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

Returns:

  • (Float)

    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.



570
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 570

class StreamingRecognitionResult; end