Cloud Speech-to-Text v2 API - Class SpeechSettings (1.0.0-beta07)

public sealed class SpeechSettings : ServiceSettingsBase

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechSettings.

Settings for SpeechClient instances.

Inheritance

object > ServiceSettingsBase > SpeechSettings

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

SpeechSettings()

public SpeechSettings()

Constructs a new SpeechSettings object with default settings.

Properties

BatchRecognizeOperationsSettings

public OperationsSettings BatchRecognizeOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.BatchRecognize and SpeechClient.BatchRecognizeAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

BatchRecognizeSettings

public CallSettings BatchRecognizeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.BatchRecognize and SpeechClient.BatchRecognizeAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

CreateCustomClassOperationsSettings

public OperationsSettings CreateCustomClassOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.CreateCustomClass and SpeechClient.CreateCustomClassAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateCustomClassSettings

public CallSettings CreateCustomClassSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.CreateCustomClass and SpeechClient.CreateCustomClassAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

CreatePhraseSetOperationsSettings

public OperationsSettings CreatePhraseSetOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.CreatePhraseSet and SpeechClient.CreatePhraseSetAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreatePhraseSetSettings

public CallSettings CreatePhraseSetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.CreatePhraseSet and SpeechClient.CreatePhraseSetAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

CreateRecognizerOperationsSettings

public OperationsSettings CreateRecognizerOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.CreateRecognizer and SpeechClient.CreateRecognizerAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateRecognizerSettings

public CallSettings CreateRecognizerSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.CreateRecognizer and SpeechClient.CreateRecognizerAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

DeleteCustomClassOperationsSettings

public OperationsSettings DeleteCustomClassOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.DeleteCustomClass and SpeechClient.DeleteCustomClassAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteCustomClassSettings

public CallSettings DeleteCustomClassSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.DeleteCustomClass and SpeechClient.DeleteCustomClassAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

DeletePhraseSetOperationsSettings

public OperationsSettings DeletePhraseSetOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.DeletePhraseSet and SpeechClient.DeletePhraseSetAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeletePhraseSetSettings

public CallSettings DeletePhraseSetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.DeletePhraseSet and SpeechClient.DeletePhraseSetAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

DeleteRecognizerOperationsSettings

public OperationsSettings DeleteRecognizerOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.DeleteRecognizer and SpeechClient.DeleteRecognizerAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteRecognizerSettings

public CallSettings DeleteRecognizerSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.DeleteRecognizer and SpeechClient.DeleteRecognizerAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

GetConfigSettings

public CallSettings GetConfigSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.GetConfig and SpeechClient.GetConfigAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

GetCustomClassSettings

public CallSettings GetCustomClassSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.GetCustomClass and SpeechClient.GetCustomClassAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

GetPhraseSetSettings

public CallSettings GetPhraseSetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.GetPhraseSet and SpeechClient.GetPhraseSetAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

GetRecognizerSettings

public CallSettings GetRecognizerSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.GetRecognizer and SpeechClient.GetRecognizerAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

ListCustomClassesSettings

public CallSettings ListCustomClassesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.ListCustomClasses and SpeechClient.ListCustomClassesAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

ListPhraseSetsSettings

public CallSettings ListPhraseSetsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.ListPhraseSets and SpeechClient.ListPhraseSetsAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

ListRecognizersSettings

public CallSettings ListRecognizersSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.ListRecognizers and SpeechClient.ListRecognizersAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
TypeDescription
LocationsSettings

RecognizeSettings

public CallSettings RecognizeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.Recognize and SpeechClient.RecognizeAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

StreamingRecognizeSettings

public CallSettings StreamingRecognizeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.StreamingRecognize and SpeechClient.StreamingRecognizeAsync.

Property Value
TypeDescription
CallSettings
Remarks

Timeout: 5000 seconds.

StreamingRecognizeStreamingSettings

public BidirectionalStreamingSettings StreamingRecognizeStreamingSettings { get; set; }

BidirectionalStreamingSettings for calls to SpeechClient.StreamingRecognize and SpeechClient.StreamingRecognizeAsync.

Property Value
TypeDescription
BidirectionalStreamingSettings
Remarks

The default local send queue size is 100.

UndeleteCustomClassOperationsSettings

public OperationsSettings UndeleteCustomClassOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UndeleteCustomClass and SpeechClient.UndeleteCustomClassAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UndeleteCustomClassSettings

public CallSettings UndeleteCustomClassSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UndeleteCustomClass and SpeechClient.UndeleteCustomClassAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UndeletePhraseSetOperationsSettings

public OperationsSettings UndeletePhraseSetOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UndeletePhraseSet and SpeechClient.UndeletePhraseSetAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UndeletePhraseSetSettings

public CallSettings UndeletePhraseSetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UndeletePhraseSet and SpeechClient.UndeletePhraseSetAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UndeleteRecognizerOperationsSettings

public OperationsSettings UndeleteRecognizerOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UndeleteRecognizer and SpeechClient.UndeleteRecognizerAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UndeleteRecognizerSettings

public CallSettings UndeleteRecognizerSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UndeleteRecognizer and SpeechClient.UndeleteRecognizerAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UpdateConfigSettings

public CallSettings UpdateConfigSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UpdateConfig and SpeechClient.UpdateConfigAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UpdateCustomClassOperationsSettings

public OperationsSettings UpdateCustomClassOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UpdateCustomClass and SpeechClient.UpdateCustomClassAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UpdateCustomClassSettings

public CallSettings UpdateCustomClassSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UpdateCustomClass and SpeechClient.UpdateCustomClassAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UpdatePhraseSetOperationsSettings

public OperationsSettings UpdatePhraseSetOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UpdatePhraseSet and SpeechClient.UpdatePhraseSetAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UpdatePhraseSetSettings

public CallSettings UpdatePhraseSetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UpdatePhraseSet and SpeechClient.UpdatePhraseSetAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

UpdateRecognizerOperationsSettings

public OperationsSettings UpdateRecognizerOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.UpdateRecognizer and SpeechClient.UpdateRecognizerAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UpdateRecognizerSettings

public CallSettings UpdateRecognizerSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.UpdateRecognizer and SpeechClient.UpdateRecognizerAsync.

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: DeadlineExceeded, Unavailable.
  • Timeout: 5000 seconds.

Methods

Clone()

public SpeechSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
SpeechSettings

A deep clone of this SpeechSettings object.

GetDefault()

public static SpeechSettings GetDefault()

Get a new instance of the default SpeechSettings.

Returns
TypeDescription
SpeechSettings

A new instance of the default SpeechSettings.