Google Cloud Speech v1 API - Class SpeechSettings (3.3.0)

public sealed class SpeechSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Speech v1 API class SpeechSettings.

Settings for SpeechClient instances.

Inheritance

Object > ServiceSettingsBase > SpeechSettings

Namespace

Google.Cloud.Speech.V1

Assembly

Google.Cloud.Speech.V1.dll

Constructors

SpeechSettings()

public SpeechSettings()

Constructs a new SpeechSettings object with default settings.

Properties

LongRunningRecognizeOperationsSettings

public OperationsSettings LongRunningRecognizeOperationsSettings { get; set; }

Long Running Operation settings for calls to SpeechClient.LongRunningRecognize and SpeechClient.LongRunningRecognizeAsync.

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.

LongRunningRecognizeSettings

public CallSettings LongRunningRecognizeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SpeechClient.LongRunningRecognize and SpeechClient.LongRunningRecognizeAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 5000 seconds.

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

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.