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 > ClientBase > ClientBaseTextToSpeechLongAudioSynthesizeTextToSpeechLongAudioSynthesizeClient > TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeClientNamespace
Google.Cloud.TextToSpeech.V1Beta1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
TextToSpeechLongAudioSynthesizeClient(ChannelBase)
public TextToSpeechLongAudioSynthesizeClient(ChannelBase channel)Creates a new client for TextToSpeechLongAudioSynthesize
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 | |
|---|---|
| Type | Description |
OperationsOperationsClient |
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 |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechLongAudioSynthesizeTextToSpeechLongAudioSynthesizeClient |
|
SynthesizeLongAudio(SynthesizeLongAudioRequest, CallOptions)
public virtual Operation SynthesizeLongAudio(SynthesizeLongAudioRequest request, CallOptions options)Synthesizes long form text asynchronously.
| Parameters | |
|---|---|
| Name | Description |
request |
SynthesizeLongAudioRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
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 |
SynthesizeLongAudioRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
SynthesizeLongAudioRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
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 |
SynthesizeLongAudioRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |