Reference documentation and code samples for the Media Translation V1beta1 API class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse.
A streaming speech translation response corresponding to a portion of the audio currently processed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#error
def error() -> ::Google::Rpc::Status
Returns
- (::Google::Rpc::Status) — Output only. If set, returns a google.rpc.Status message that specifies the error for the operation.
#result
def result() -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult
Returns
- (::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult) — Output only. The translation result that is currently being processed (is_final could be true or false).
#speech_event_type
def speech_event_type() -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse::SpeechEventType
Returns
- (::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse::SpeechEventType) — Output only. Indicates the type of speech event.