Google Cloud Text-to-Speech v1 API - Class TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient (3.1.0)

public class TextToSpeechLongAudioSynthesizeClient : ClientBase<TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient>

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

Client for TextToSpeechLongAudioSynthesize

Inheritance

Object > ClientBase > ClientBase<TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient> > TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient

Namespace

Google.Cloud.TextToSpeech.V1

Assembly

Google.Cloud.TextToSpeech.V1.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TextToSpeechLongAudioSynthesizeClient(ChannelBase)

public TextToSpeechLongAudioSynthesizeClient(ChannelBase channel)

Creates a new client for TextToSpeechLongAudioSynthesize

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TextToSpeechLongAudioSynthesizeClient(ClientBase.ClientBaseConfiguration)

protected TextToSpeechLongAudioSynthesizeClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.TextToSpeech.V1.TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SynthesizeLongAudio(SynthesizeLongAudioRequest, CallOptions)

public virtual Operation SynthesizeLongAudio(SynthesizeLongAudioRequest request, CallOptions options)

Synthesizes long form text asynchronously.

Parameters
NameDescription
requestSynthesizeLongAudioRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SynthesizeLongAudio(SynthesizeLongAudioRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Synthesizes long form text asynchronously.

Parameters
NameDescription
requestSynthesizeLongAudioRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SynthesizeLongAudioAsync(SynthesizeLongAudioRequest, CallOptions)

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

Synthesizes long form text asynchronously.

Parameters
NameDescription
requestSynthesizeLongAudioRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SynthesizeLongAudioAsync(SynthesizeLongAudioRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Synthesizes long form text asynchronously.

Parameters
NameDescription
requestSynthesizeLongAudioRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.