RecordMessagePromptSelector 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 RecordMessagePromptSelector
[SerializableAttribute] 
[SpeechCustomMarkupSerializerAttribute] 
public sealed class RecordMessagePromptSelector

Remarks

When the TurnStarting event for the RecordMessageActivity occurs, the system determines the appropriate prompt to play. Because only the main and continue recording prompts are 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

EscalatedSilencePrompt

SilencePrompt

SilencePrompt

MainPrompt

The prompts that this class provides are listed in the following table.

Prompt

Description

ContinueRecordingPrompt

The prompt to play to append additional audio content to an existing recording.

EscalatedSilencePrompt

The prompt to play the second and subsequent times that the user does not respond.

MainPrompt

The main prompt.

SilencePrompt

The prompt to play the first time that the user does not respond.

Inheritance Hierarchy

System.Object
????Microsoft.SpeechServer.Dialog.RecordMessagePromptSelector

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

RecordMessagePromptSelector Members
Microsoft.SpeechServer.Dialog Namespace
ContinueRecordingPrompt
EscalatedSilencePrompt
MainPrompt
SilencePrompt