Google Cloud Text-to-Speech v1 API - Class TextToSpeechSettings (3.3.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
TypeDescription
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.

SynthesizeSpeechSettings

public CallSettings SynthesizeSpeechSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TextToSpeechClient.SynthesizeSpeech and TextToSpeechClient.SynthesizeSpeechAsync.

Property Value
TypeDescription
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
TypeDescription
TextToSpeechSettings

A deep clone of this TextToSpeechSettings object.

GetDefault()

public static TextToSpeechSettings GetDefault()

Get a new instance of the default TextToSpeechSettings.

Returns
TypeDescription
TextToSpeechSettings

A new instance of the default TextToSpeechSettings.