RecognizeCompletedEventArgs.InitialSilenceTimeout Property

Indicates if a recognition operation has timed out due to no input.

Namespace: System.Speech.Recognition
Assembly: System.Speech (in system.speech.dll)

public bool InitialSilenceTimeout { get; }
/** @property */
public boolean get_InitialSilenceTimeout ()

public function get InitialSilenceTimeout () : boolean

Not applicable.

Property Value

Returns a bool which is true if the recognition engine has detected no input for longer than was specified by the InitialSilenceTimeout property of the SpeechRecognitionEngine managing the recognition engine, otherwise false.

The example below show a simple anonymousmethod used as the handler for RecognizeCompleted. The handler stores the result of the recognition operation, if Result is not a null reference (Nothing in Visual Basic) and updates a state variable. If an error condition exists, a message is sent to the end user.

_recognizer.RecognizeCompleted += delegate(object sender, RecognizeCompletedEventArgs completedEventArgs) {
    _recognitionDone = true;
    if (completedEventArgs.Result != null) {
        _completedEventArgs = completedEventArgs;
        _recognitionSuccess = true;
    } else {
        _completedEventArgs = null;
        _recognitionSuccess = false;
        MessageBox.Show(String.Format("Recognition failed\n",
                                      "InitialSilenceTimeout: {0}\n",
                                      "BabbleTimeout: {0}\n",
                                      "InputStreamEnded: {2}\n",

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0