Class TextToSpeech.TextToSpeechBase (3.0.0)

[BindServiceMethod(typeof(TextToSpeech), "BindService")]
public abstract class TextToSpeechBase

Base class for server-side implementations of TextToSpeech

Inheritance

Object > TextToSpeech.TextToSpeechBase

Namespace

Google.Cloud.TextToSpeech.V1

Assembly

Google.Cloud.TextToSpeech.V1.dll

Methods

ListVoices(ListVoicesRequest, ServerCallContext)

public virtual Task<ListVoicesResponse> ListVoices(ListVoicesRequest request, ServerCallContext context)

Returns a list of Voice supported for synthesis.

Parameters
NameDescription
requestListVoicesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListVoicesResponse>

The response to send back to the client (wrapped by a task).

SynthesizeSpeech(SynthesizeSpeechRequest, ServerCallContext)

public virtual Task<SynthesizeSpeechResponse> SynthesizeSpeech(SynthesizeSpeechRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSynthesizeSpeechRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SynthesizeSpeechResponse>

The response to send back to the client (wrapped by a task).