Class: Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb
Overview
A speech recognition result corresponding to a portion of the audio.
Instance Attribute Summary collapse
-
#alternatives ⇒ ::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>
May contain one or more recognition hypotheses (up to the maximum specified in
max_alternatives
). -
#channel_tag ⇒ ::Integer
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel.
-
#language_code ⇒ ::String
readonly
Output only.
-
#result_end_time ⇒ ::Google::Protobuf::Duration
Time offset of the end of this result relative to the beginning of the audio.
Instance Attribute Details
#alternatives ⇒ ::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>
Returns 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.
919 920 921 922 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 919 class SpeechRecognitionResult 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'.
919 920 921 922 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 919 class SpeechRecognitionResult 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.
919 920 921 922 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 919 class SpeechRecognitionResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#result_end_time ⇒ ::Google::Protobuf::Duration
Returns Time offset of the end of this result relative to the beginning of the audio.
919 920 921 922 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 919 class SpeechRecognitionResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |