(0) exportieren Drucken
Alle erweitern

SpeechRecognitionEngine.Recognize-Methode (TimeSpan)

Provides a single synchronous recognition operation, with a predetermined time out, on recognition engine input.

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

public RecognitionResult Recognize (
	TimeSpan initialSilenceTimeout
)
public RecognitionResult Recognize (
	TimeSpan initialSilenceTimeout
)
public function Recognize (
	initialSilenceTimeout : TimeSpan
) : RecognitionResult
Nicht zutreffend.

Parameter

initialSilenceTimeout

A valid instance of TimeSpan defining a time out period, after which if no input is received an error is generated.

Rückgabewert

Returns a valid instance of RecognitionResult is the recognition engine has be able to recognize the input, NULL-Verweis (Nothing in Visual Basic) is recognition fails.

If input is received by a recognition engine within the time time span indicated by initialSilenceTimeout argument Recognize(TimeSpan), performs a single recognition operation and then terminates.

The synchronous recognition operations of Recognize(TimeSpan) do not generate any of the SpeechRecognitionEngine events, in particular RecognizeCompleted is not generated.

Recognition failure may be due either to timing out against the values of the initialSilenceTimeout argument or the BabbleTimeout property on the current instance of SpeechRecognitionEngine, or because the recognition engine finds no matches against the Grammar that has been loaded into it.

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

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen:
© 2014 Microsoft