# Media Translation v1beta1 API - Class SpeechTranslationService.SpeechTranslationServiceClient (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.SpeechTranslationService.SpeechTranslationServiceClient)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/2.0.0-beta05/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService.SpeechTranslationServiceClient)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/1.0.0-beta03/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService.SpeechTranslationServiceClient)

    public class SpeechTranslationService.SpeechTranslationServiceClient : ClientBase<SpeechTranslationService.SpeechTranslationServiceClient>

Reference documentation and code samples for the Media Translation v1beta1 API class SpeechTranslationService.SpeechTranslationServiceClient.

Client for SpeechTranslationService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[SpeechTranslationService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService)[SpeechTranslationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService.SpeechTranslationServiceClient) \> SpeechTranslationService.SpeechTranslationServiceClient

## Inherited Members

[ClientBase\<SpeechTranslationService.SpeechTranslationServiceClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

### SpeechTranslationServiceClient()

    protected SpeechTranslationServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### SpeechTranslationServiceClient(CallInvoker)

    public SpeechTranslationServiceClient(CallInvoker callInvoker)

Creates a new client for SpeechTranslationService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### SpeechTranslationServiceClient(ChannelBase)

    public SpeechTranslationServiceClient(ChannelBase channel)

Creates a new client for SpeechTranslationService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` The channel to use to make remote calls. |

### SpeechTranslationServiceClient(ClientBaseConfiguration)

    protected SpeechTranslationServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### NewInstance(ClientBaseConfiguration)

    protected override SpeechTranslationService.SpeechTranslationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService.SpeechTranslationServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.MediaTranslation.V1Beta1.SpeechTranslationService.SpeechTranslationServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### StreamingTranslateSpeech(CallOptions)

    public virtual AsyncDuplexStreamingCall<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> StreamingTranslateSpeech(CallOptions options)

Performs bidirectional streaming speech translation: receive results while
sending audio. This method is only available via the gRPC API (not REST).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncDuplexStreamingCall-2.htmlhttps://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.StreamingTranslateSpeechResponse` | The call object. |

### StreamingTranslateSpeech(Metadata, DateTime?, CancellationToken)

    public virtual AsyncDuplexStreamingCall<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> StreamingTranslateSpeech(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Performs bidirectional streaming speech translation: receive results while
sending audio. This method is only available via the gRPC API (not REST).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncDuplexStreamingCall-2.htmlhttps://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.StreamingTranslateSpeechResponse` | The call object. |