Class: Google::Cloud::Speech::V2::StreamingRecognitionResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v2/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

#alternatives::Array<::Google::Cloud::Speech::V2::SpeechRecognitionAlternative>

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

Returns:



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#channel_tag::Integer

Returns For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from 1 to N.

Returns:

  • (::Integer)

    For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from 1 to N.



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#is_final::Boolean

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

  • (::Boolean)

    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.



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_code::String (readonly)

Returns Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.

Returns:

  • (::String)

    Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#result_end_offset::Google::Protobuf::Duration

Returns Time offset of the end of this result relative to the beginning of the audio.

Returns:



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#stability::Float

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

    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.



1297
1298
1299
1300
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 1297

class StreamingRecognitionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end