Google Cloud Text-to-Speech v1beta1 API - Class TextToSpeechClientImpl (2.0.0-beta08)

public sealed class TextToSpeechClientImpl : TextToSpeechClient

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

TextToSpeech client wrapper implementation, for convenient use.

Inheritance

object > TextToSpeechClient > TextToSpeechClientImpl

Namespace

Google.Cloud.TextToSpeech.V1Beta1

Assembly

Google.Cloud.TextToSpeech.V1Beta1.dll

Remarks

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

Constructors

TextToSpeechClientImpl(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
Name Description
grpcClient TextToSpeechTextToSpeechClient

The underlying gRPC client.

settings TextToSpeechSettings

The base TextToSpeechSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override TextToSpeech.TextToSpeechClient GrpcClient { get; }

The underlying gRPC TextToSpeech client

Property Value
Type Description
TextToSpeechTextToSpeechClient
Overrides

Methods

ListVoices(ListVoicesRequest, CallSettings)

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

Returns a list of Voice supported for synthesis.

Parameters
Name Description
request ListVoicesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request ListVoicesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListVoicesResponse

A Task containing the RPC response.

Overrides

StreamingSynthesize(CallSettings, BidirectionalStreamingSettings)

public override TextToSpeechClient.StreamingSynthesizeStream StreamingSynthesize(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Performs bidirectional streaming speech synthesis: receive audio while sending text.

Parameters
Name Description
callSettings CallSettings

If not null, applies overrides to this RPC call.

streamingSettings BidirectionalStreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
Type Description
TextToSpeechClientStreamingSynthesizeStream

The client-server stream.

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
Name Description
request SynthesizeSpeechRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request SynthesizeSpeechRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSynthesizeSpeechResponse

A Task containing the RPC response.

Overrides