Google Cloud Text-to-Speech v1 API - Class TextToSpeech.TextToSpeechBase (3.4.0)

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

Reference documentation and code samples for the Google Cloud Text-to-Speech v1 API class TextToSpeech.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
TaskListVoicesResponse

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
TaskSynthesizeSpeechResponse

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