public sealed class TextToSpeechClientImpl : TextToSpeechClientTextToSpeech client wrapper implementation, for convenient use.
Namespace
Google.Cloud.TextToSpeech.V1Assembly
Google.Cloud.TextToSpeech.V1.dll
Remarks
Service that implements Google Cloud Text-to-Speech API.
Constructors
TextToSpeechClientImpl(TextToSpeech.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 |
TextToSpeech.TextToSpeechClientThe underlying gRPC client. |
settings |
TextToSpeechSettingsThe base TextToSpeechSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override TextToSpeech.TextToSpeechClient GrpcClient { get; }The underlying gRPC TextToSpeech client
| Property Value | |
|---|---|
| Type | Description |
TextToSpeech.TextToSpeechClient |
|
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 |
ListVoicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ListVoicesResponse |
The RPC response. |
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 |
ListVoicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<ListVoicesResponse> |
A Task containing the RPC response. |
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 |
SynthesizeSpeechRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechResponse |
The RPC response. |
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 |
SynthesizeSpeechRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<SynthesizeSpeechResponse> |
A Task containing the RPC response. |