public sealed class SpeechSettings : ServiceSettingsBase
Reference documentation and code samples for the Google Cloud Speech v1 API class SpeechSettings.
Settings for SpeechClient instances.
Namespace
Google.Cloud.Speech.V1Assembly
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 | |
---|---|
Type | Description |
OperationsSettings |
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 |
- 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 |
- 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 | |
---|---|
Type | Description |
CallSettings |
Timeout: 5000 seconds.
StreamingRecognizeStreamingSettings
public BidirectionalStreamingSettings StreamingRecognizeStreamingSettings { get; set; }
BidirectionalStreamingSettings for calls to SpeechClient.StreamingRecognize
and SpeechClient.StreamingRecognizeAsync
.
Property Value | |
---|---|
Type | Description |
BidirectionalStreamingSettings |
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. |