Google Cloud Speech v1p1beta1 API - Class SpeechSettings (3.0.0-beta08)

public sealed class SpeechSettings : ServiceSettingsBase

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

Settings for SpeechClient instances.

Inheritance

object > ServiceSettingsBase > SpeechSettings

Namespace

Google.Cloud.Speech.V1P1Beta1

Assembly

Google.Cloud.Speech.V1P1Beta1.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
Type Description
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
Type Description
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
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: 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
Type Description
CallSettings
Remarks

Timeout: 5000 seconds.

StreamingRecognizeStreamingSettings

public BidirectionalStreamingSettings StreamingRecognizeStreamingSettings { get; set; }

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

Property Value
Type Description
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
Type Description
SpeechSettings

A deep clone of this SpeechSettings object.

GetDefault()

public static SpeechSettings GetDefault()

Get a new instance of the default SpeechSettings.

Returns
Type Description
SpeechSettings

A new instance of the default SpeechSettings.