# Google Cloud Text-to-Speech v1beta1 API - Class TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient (2.0.0-beta18)

2.0.0-beta18 (latest) 2.0.0-beta17 1.0.0-beta04

    public class TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient : ClientBase<TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient>

Reference documentation and code samples for the Google Cloud Text-to-Speech v1beta1 API class TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient.

Client for TextToSpeechLongAudioSynthesize

## 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)[TextToSpeechLongAudioSynthesize](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.TextToSpeechLongAudioSynthesize)[TextToSpeechLongAudioSynthesizeClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient) \> TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient

## Inherited Members

[ClientBase\<TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient\>.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.TextToSpeech.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1)

## Assembly

Google.Cloud.TextToSpeech.V1Beta1.dll

## Constructors

### TextToSpeechLongAudioSynthesizeClient()

    protected TextToSpeechLongAudioSynthesizeClient()

Protected parameterless constructor to allow creation of test doubles.

### TextToSpeechLongAudioSynthesizeClient(CallInvoker)

    public TextToSpeechLongAudioSynthesizeClient(CallInvoker callInvoker)

Creates a new client for TextToSpeechLongAudioSynthesize 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. |

### TextToSpeechLongAudioSynthesizeClient(ChannelBase)

    public TextToSpeechLongAudioSynthesizeClient(ChannelBase channel)

Creates a new client for TextToSpeechLongAudioSynthesize

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

### TextToSpeechLongAudioSynthesizeClient(ClientBaseConfiguration)

    protected TextToSpeechLongAudioSynthesizeClient(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

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html` | A new Operations client for the same target as this client. |

### NewInstance(ClientBaseConfiguration)

    protected override TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient 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.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.TextToSpeechLongAudioSynthesizehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.TextToSpeech.V1Beta1.TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### SynthesizeLongAudio(SynthesizeLongAudioRequest, CallOptions)

    public virtual Operation SynthesizeLongAudio(SynthesizeLongAudioRequest request, CallOptions options)

Synthesizes long form text asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeLongAudioRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### SynthesizeLongAudio(SynthesizeLongAudioRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation SynthesizeLongAudio(SynthesizeLongAudioRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Synthesizes long form text asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeLongAudioRequest` The request to send to the server. |
| `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://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### SynthesizeLongAudioAsync(SynthesizeLongAudioRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> SynthesizeLongAudioAsync(SynthesizeLongAudioRequest request, CallOptions options)

Synthesizes long form text asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeLongAudioRequest` The request to send to the server. |
| `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.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |

### SynthesizeLongAudioAsync(SynthesizeLongAudioRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> SynthesizeLongAudioAsync(SynthesizeLongAudioRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Synthesizes long form text asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeLongAudioRequest` The request to send to the server. |
| `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.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |