public sealed class TextToSpeechSettings : ServiceSettingsBaseReference documentation and code samples for the Google Cloud Text-to-Speech v1beta1 API class TextToSpeechSettings.
Settings for TextToSpeechClient instances.
Namespace
Google.Cloud.TextToSpeech.V1Beta1Assembly
Google.Cloud.TextToSpeech.V1Beta1.dll
Constructors
TextToSpeechSettings()
public TextToSpeechSettings()Constructs a new TextToSpeechSettings object with default settings.
Properties
ListVoicesSettings
public CallSettings ListVoicesSettings { get; set; }CallSettings for synchronous and asynchronous calls to
TextToSpeechClient.ListVoices and TextToSpeechClient.ListVoicesAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 300 seconds.
StreamingSynthesizeSettings
public CallSettings StreamingSynthesizeSettings { get; set; }CallSettings for synchronous and asynchronous calls to
TextToSpeechClient.StreamingSynthesize and TextToSpeechClient.StreamingSynthesizeAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
Timeout: 300 seconds.
StreamingSynthesizeStreamingSettings
public BidirectionalStreamingSettings StreamingSynthesizeStreamingSettings { get; set; }BidirectionalStreamingSettings for calls to TextToSpeechClient.StreamingSynthesize
and TextToSpeechClient.StreamingSynthesizeAsync.
| Property Value | |
|---|---|
| Type | Description |
BidirectionalStreamingSettings |
|
The default local send queue size is 100.
SynthesizeSpeechSettings
public CallSettings SynthesizeSpeechSettings { get; set; }CallSettings for synchronous and asynchronous calls to
TextToSpeechClient.SynthesizeSpeech and TextToSpeechClient.SynthesizeSpeechAsync.
| Property Value | |
|---|---|
| Type | Description |
CallSettings |
|
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 300 seconds.
Methods
Clone()
public TextToSpeechSettings Clone()Creates a deep clone of this object, with all the same property values.
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings |
A deep clone of this TextToSpeechSettings object. |
GetDefault()
public static TextToSpeechSettings GetDefault()Get a new instance of the default TextToSpeechSettings.
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings |
A new instance of the default TextToSpeechSettings. |