Google Cloud Text-to-Speech v1 API - Class TextToSpeechSettings (3.8.0)

public sealed class TextToSpeechSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Text-to-Speech v1 API class TextToSpeechSettings.

Settings for TextToSpeechClient instances.

Inheritance

object > ServiceSettingsBase > TextToSpeechSettings

Namespace

Google.Cloud.TextToSpeech.V1

Assembly

Google.Cloud.TextToSpeech.V1.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
Remarks
  • 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
Remarks

Timeout: 300 seconds.

StreamingSynthesizeStreamingSettings

public BidirectionalStreamingSettings StreamingSynthesizeStreamingSettings { get; set; }

BidirectionalStreamingSettings for calls to TextToSpeechClient.StreamingSynthesize and TextToSpeechClient.StreamingSynthesizeAsync.

Property Value
Type Description
BidirectionalStreamingSettings
Remarks

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
Remarks
  • 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.