[BindServiceMethod(typeof(TextToSpeech), "BindService")]
public abstract class TextToSpeech.TextToSpeechBaseReference documentation and code samples for the Google Cloud Text-to-Speech v1 API class TextToSpeech.TextToSpeechBase.
Base class for server-side implementations of TextToSpeech
Namespace
Google.Cloud.TextToSpeech.V1Assembly
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 | |
|---|---|
| Name | Description | 
| request | ListVoicesRequestThe request received from the client. | 
| context | ServerCallContextThe context of the server-side call handler being invoked. | 
| Returns | |
|---|---|
| Type | Description | 
| TaskListVoicesResponse | The response to send back to the client (wrapped by a task). | 
StreamingSynthesize(IAsyncStreamReader<StreamingSynthesizeRequest>, IServerStreamWriter<StreamingSynthesizeResponse>, ServerCallContext)
public virtual Task StreamingSynthesize(IAsyncStreamReader<StreamingSynthesizeRequest> requestStream, IServerStreamWriter<StreamingSynthesizeResponse> responseStream, ServerCallContext context)Performs bidirectional streaming speech synthesis: receives audio while sending text.
| Parameters | |
|---|---|
| Name | Description | 
| requestStream | IAsyncStreamReaderStreamingSynthesizeRequestUsed for reading requests from the client. | 
| responseStream | IServerStreamWriterStreamingSynthesizeResponseUsed for sending responses back to the client. | 
| context | ServerCallContextThe context of the server-side call handler being invoked. | 
| Returns | |
|---|---|
| Type | Description | 
| Task | A task indicating completion of the handler. | 
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 | |
|---|---|
| Name | Description | 
| request | SynthesizeSpeechRequestThe request received from the client. | 
| context | ServerCallContextThe context of the server-side call handler being invoked. | 
| Returns | |
|---|---|
| Type | Description | 
| TaskSynthesizeSpeechResponse | The response to send back to the client (wrapped by a task). |