QuestionAnswerPromptSelector Class
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.
Chooses the correct prompt based on history.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<SerializableAttribute> _
<SpeechCustomMarkupSerializerAttribute> _
Public NotInheritable Class QuestionAnswerPromptSelector
[SerializableAttribute]
[SpeechCustomMarkupSerializerAttribute]
public sealed class QuestionAnswerPromptSelector
Remarks
The prompts have their culture specified on the telephony session at the time when content is first added to the prompt. If the culture changes after some content is added, the prompt keeps the culture in effect before the content was added. If the prompt is cleared and new content is added, the culture is updated to the most recent culture.
When the TurnStarting event for the QuestionAnswerActivity occurs, the system determines the appropriate prompt to play. Because only the main prompt is required, it is possible that the appropriate prompt for a given situation might not be specified (that is, there might be nothing to play for the prompt). In these situations, the system relies on a fallback scheme, as summarized in the following table.
Note
If the fallback prompt is also unspecified, treat the fallback prompt as if it is the requested prompt and look for its fallback prompt.
Requested Prompt |
Fallback Prompt |
SilencePrompt |
|
HelpPrompt |
|
NoRecognitionPrompt |
HelpPrompt |
MainPrompt |
Inheritance Hierarchy
System.Object
????Microsoft.SpeechServer.Dialog.QuestionAnswerPromptSelector
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
QuestionAnswerPromptSelector Members
Microsoft.SpeechServer.Dialog Namespace
QuestionAnswerActivity.TurnStarting Event
QuestionAnswerActivity Class
MainPrompt
SilencePrompt
EscalatedSilencePrompt
NoRecognitionPrompt
EscalatedNoRecognitionPrompt
HelpPrompt
RepeatPrompt