Google Cloud Text-to-Speech v1 API - Class TextToSpeechClientImpl (3.1.0)

public sealed class TextToSpeechClientImpl : TextToSpeechClient

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

TextToSpeech client wrapper implementation, for convenient use.

Inheritance

Object > TextToSpeechClient > TextToSpeechClientImpl

Namespace

Google.Cloud.TextToSpeech.V1

Assembly

Google.Cloud.TextToSpeech.V1.dll

Remarks

Service that implements Google Cloud Text-to-Speech API.

Constructors

TextToSpeechClientImpl(TextToSpeech.TextToSpeechClient, TextToSpeechSettings, ILogger)

public TextToSpeechClientImpl(TextToSpeech.TextToSpeechClient grpcClient, TextToSpeechSettings settings, ILogger logger)

Constructs a client wrapper for the TextToSpeech service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientTextToSpeech.TextToSpeechClient

The underlying gRPC client.

settingsTextToSpeechSettings

The base TextToSpeechSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override TextToSpeech.TextToSpeechClient GrpcClient { get; }

The underlying gRPC TextToSpeech client

Property Value
TypeDescription
TextToSpeech.TextToSpeechClient
Overrides

Methods

ListVoices(ListVoicesRequest, CallSettings)

public override ListVoicesResponse ListVoices(ListVoicesRequest request, CallSettings callSettings = null)

Returns a list of Voice supported for synthesis.

Parameters
NameDescription
requestListVoicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListVoicesResponse

The RPC response.

Overrides

ListVoicesAsync(ListVoicesRequest, CallSettings)

public override Task<ListVoicesResponse> ListVoicesAsync(ListVoicesRequest request, CallSettings callSettings = null)

Returns a list of Voice supported for synthesis.

Parameters
NameDescription
requestListVoicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListVoicesResponse>

A Task containing the RPC response.

Overrides

SynthesizeSpeech(SynthesizeSpeechRequest, CallSettings)

public override SynthesizeSpeechResponse SynthesizeSpeech(SynthesizeSpeechRequest request, CallSettings callSettings = null)

Synthesizes speech synchronously: receive results after all text input has been processed.

Parameters
NameDescription
requestSynthesizeSpeechRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SynthesizeSpeechResponse

The RPC response.

Overrides

SynthesizeSpeechAsync(SynthesizeSpeechRequest, CallSettings)

public override Task<SynthesizeSpeechResponse> SynthesizeSpeechAsync(SynthesizeSpeechRequest request, CallSettings callSettings = null)

Synthesizes speech synchronously: receive results after all text input has been processed.

Parameters
NameDescription
requestSynthesizeSpeechRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SynthesizeSpeechResponse>

A Task containing the RPC response.

Overrides