# Media Translation V1beta1 API - Class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest (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::StreamingTranslateSpeechRequest.

The top-level message sent by the client for the `StreamingTranslateSpeech`
method. Multiple `StreamingTranslateSpeechRequest` messages are sent. The
first message must contain a `streaming_config` message and must not contain
`audio_content` data. All subsequent messages must contain `audio_content`
data and must not contain a `streaming_config` message.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #audio_content

    def audio_content() -> ::String

**Returns**

- (::String) --- The audio data to be translated. Sequential chunks of audio data are sent in sequential `StreamingTranslateSpeechRequest` messages. The first `StreamingTranslateSpeechRequest` message must not contain `audio_content` data and all subsequent `StreamingTranslateSpeechRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).


  Note: The following fields are mutually exclusive: `audio_content`, `streaming_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #audio_content=

    def audio_content=(value) -> ::String

**Parameter**

- **value** (::String) --- The audio data to be translated. Sequential chunks of audio data are sent in sequential `StreamingTranslateSpeechRequest` messages. The first `StreamingTranslateSpeechRequest` message must not contain `audio_content` data and all subsequent `StreamingTranslateSpeechRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).


  Note: The following fields are mutually exclusive: `audio_content`, `streaming_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The audio data to be translated. Sequential chunks of audio data are sent in sequential `StreamingTranslateSpeechRequest` messages. The first `StreamingTranslateSpeechRequest` message must not contain `audio_content` data and all subsequent `StreamingTranslateSpeechRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).


  Note: The following fields are mutually exclusive: `audio_content`, `streaming_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #streaming_config

    def streaming_config() -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig

**Returns**

- ([::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechConfig)) --- Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.


  Note: The following fields are mutually exclusive: `streaming_config`, `audio_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #streaming_config=

    def streaming_config=(value) -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig

**Parameter**

- **value** ([::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechConfig)) --- Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.


  Note: The following fields are mutually exclusive: `streaming_config`, `audio_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechConfig)) --- Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.


  Note: The following fields are mutually exclusive: `streaming_config`, `audio_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.