Language

SpeechRecognizer.EnableLegacyDefaultDisconnectSilenceTimeout(Boolean) Method

Definition

Enables (or disables) the SDK 1.51 (or older) default behavior for the initial and end (disconnect) silence timeouts during continuous recognition.

When called with enable true, the SDK does not send the initial silence timeout (IST) or end silence timeout (EST) to the service when they are not explicitly configured, letting the service apply its own defaults. When called with enable false, the SDK sends a value of 0 to the service for each timeout that is not explicitly configured.

Explicitly configured timeout values are always honored regardless of this flag, and this setting only affects continuous recognition (StartContinuousRecognition); single-shot recognition (RecognizeOnce) is unaffected.

If this method is not called, the SDK behaves as if it were called with enable set to true.

public void EnableLegacyDefaultDisconnectSilenceTimeout(bool enable);
member this.EnableLegacyDefaultDisconnectSilenceTimeout : bool -> unit
Public Sub EnableLegacyDefaultDisconnectSilenceTimeout (enable As Boolean)

Parameters

enable
Boolean

true to omit unspecified IST and EST values; false to send 0 for unspecified IST and EST values.

Applies to