Class: Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult
- Inherits:
-
Object
- Object
- Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/mediatranslation/v1beta1/media_translation.rb
Overview
A streaming speech translation result corresponding to a portion of the audio that is currently being processed.
Defined Under Namespace
Classes: TextTranslationResult
Instance Attribute Summary collapse
-
#text_translation_result ⇒ ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult
Text translation result.
Instance Attribute Details
#text_translation_result ⇒ ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult
Returns Text translation result.
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'proto_docs/google/cloud/mediatranslation/v1beta1/media_translation.rb', line 141 class StreamingTranslateSpeechResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text translation result. # @!attribute [r] translation # @return [::String] # Output only. The translated sentence. # @!attribute [r] is_final # @return [::Boolean] # Output only. If `false`, this `StreamingTranslateSpeechResult` represents # an interim result that may change. If `true`, this is the final time the # translation service will return this particular # `StreamingTranslateSpeechResult`, the streaming translator will not # return any further hypotheses for this portion of the transcript and # corresponding audio. class TextTranslationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |