Share via


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

Remarks

When the TurnStarting event for the RecordAudioActivity 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

EscalatedSilencePrompt

SilencePrompt

SilencePrompt

MainPrompt

Inheritance Hierarchy

System.Object
????Microsoft.SpeechServer.Dialog.RecordAudioPromptSelector

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

RecordAudioPromptSelector Members
Microsoft.SpeechServer.Dialog Namespace
RecordAudioActivity.TurnStarting Event
RecordAudioActivity Class
MainPrompt
SilencePrompt
EscalatedSilencePrompt