Google Cloud Text-to-Speech v1beta1 API - Class TextToSpeechSettings (2.0.0-beta06)

public sealed class TextToSpeechSettings : ServiceSettingsBase

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

Settings for TextToSpeechClient instances.

Inheritance

object > ServiceSettingsBase > TextToSpeechSettings

Namespace

Google.Cloud.TextToSpeech.V1Beta1

Assembly

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