IDtmfRecognizer.RecognizeCompleted Event
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Occurs when the DtmfRecognizer has stopped recognizing.
Namespace: Microsoft.SpeechServer.Recognition
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Event RecognizeCompleted As EventHandler(Of RecognizeCompletedEventArgs)
event EventHandler<RecognizeCompletedEventArgs> RecognizeCompleted
Example
In the following example, a method called NextStep contains the logic of the application, separated into steps. In most cases, each step configures and runs one speech object asynchronously, and the event-handler for that object calls the NextStep method, which executes the next step of the application logic.
But step 3 of this example starts the DtmfRecognizer at the same time as the SpeechSynthesizer. Both objects have an event-handler, but only one of these two event handlers should call the NextStep method. Because it cannot be determined which occurs first, it is necessary to maintain a counter of active speech objects. Each event handler decrements the count and calls NextStep only if the count has been decremented to zero.
This technique can also be used when running the SpeechSynthesizer, DtmfRecognizer, and SpeechRecognizer at the same time.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
IDtmfRecognizer Interface
IDtmfRecognizer Members
Microsoft.SpeechServer.Recognition Namespace