# Media Translation V1beta1 API - Class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse (v0.16.0)

0.16.0 (latest) 0.15.0 0.14.0 0.13.1 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.5 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Rpc-Status)) --- Output only. If set, returns a [google.rpc.Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Rpc-Status "Google::Rpc::Status (class)") message that specifies the error for the operation.

### #result

    def result() -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult

**Returns**

- ([::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResponse-SpeechEventType)) --- Output only. Indicates the type of speech event.