# Media Translation v1beta1 API - Class StreamingTranslateSpeechRequest (2.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/2.0.0-beta05/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/1.0.0-beta03/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest)

    public sealed class StreamingTranslateSpeechRequest : IMessage<StreamingTranslateSpeechRequest>, IEquatable<StreamingTranslateSpeechRequest>, IDeepCloneable<StreamingTranslateSpeechRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Media Translation v1beta1 API class 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> StreamingTranslateSpeechRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingTranslateSpeechRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingTranslateSpeechRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingTranslateSpeechRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.MediaTranslation.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1)

## Assembly

Google.Cloud.MediaTranslation.V1Beta1.dll

## Constructors

### StreamingTranslateSpeechRequest()

    public StreamingTranslateSpeechRequest()

### StreamingTranslateSpeechRequest(StreamingTranslateSpeechRequest)

    public StreamingTranslateSpeechRequest(StreamingTranslateSpeechRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest` |

## Properties

### AudioContent

    public ByteString AudioContent { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### HasAudioContent

    public bool HasAudioContent { get; }

Gets whether the "audio_content" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### StreamingConfig

    public StreamingTranslateSpeechConfig StreamingConfig { get; set; }

Provides information to the recognizer that specifies how to process the
request. The first `StreamingTranslateSpeechRequest` message must contain
a `streaming_config` message.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig` |   |

### StreamingRequestCase

    public StreamingTranslateSpeechRequest.StreamingRequestOneofCase StreamingRequestCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechRequest.StreamingRequestOneofCase` |   |