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

3.18.0 (latest) 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.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](https://learn.microsoft.com/dotnet/api/system.object) \> TextToSpeech.TextToSpeechBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.TextToSpeech.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.ListVoicesRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.ListVoicesResponse` | 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` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.StreamingSynthesizeRequest` Used for reading requests from the client. |
| `responseStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IServerStreamWriter-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.StreamingSynthesizeResponse` Used for sending responses back to the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.SynthesizeSpeechRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.SynthesizeSpeechResponse` | The response to send back to the client (wrapped by a task). |