MenuActivity.RecognitionResult Property
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.
Gets the recognition result.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
<GlobalizedDescriptionAttribute("DialogActivityCommon_RecognitionResult")> _
<ReadOnlyAttribute(True)> _
<GlobalizedCategoryAttribute("NonDesignableCategory")> _
Public ReadOnly Property RecognitionResult As RecognitionResult
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
[GlobalizedDescriptionAttribute("DialogActivityCommon_RecognitionResult")]
[ReadOnlyAttribute(true)]
[GlobalizedCategoryAttribute("NonDesignableCategory")]
public RecognitionResult RecognitionResult { get; }
Property Value
The RecognitionResult, or null if there is not a valid recognition.
Example
The following example shows an implementation of an event handler for the ConfirmationTurnStarting event. The implementation clears the confirmation main prompt and restates the recognized result from the user's utterance.
private void chooseSize_ConfirmationTurnStarting(object sender, TurnStartingEventArgs e)
{
this.chooseSize.ConfirmationMainPrompt.ClearContent();
this.chooseSize.ConfirmationMainPrompt.AppendText(string.Format("Did you say {0}", this.chooseSize.RecognitionResult.Semantics.Value));
}
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
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
MenuActivity Class
MenuActivity Members
Microsoft.SpeechServer.Dialog Namespace
RecognitionResult
ConfirmationTurnStarting