RecordMessageActivity 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.
Enables the user to record a message and then perform some actions on it (such as save, discard, and append).
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechExpandableDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(IDesigner))> _
<DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechActivityMarkupSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(WorkflowMarkupSerializer))> _
<GlobalizedDescriptionAttribute("RecordMessageActivity")> _
<GlobalizedCategoryAttribute("MSSCategory")> _
<ActivityValidatorAttribute(GetType(RecordMessageActivityValidator))> _
<ToolboxBitmapAttribute(GetType(RecordMessageActivity))> _
<DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GenericSpeechCodeDomSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(CodeDomSerializer))> _
Public NotInheritable Class RecordMessageActivity
Inherits SpeechCompositeActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
[DesignerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechExpandableDesigner, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(IDesigner))]
[DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.SpeechActivityMarkupSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(WorkflowMarkupSerializer))]
[GlobalizedDescriptionAttribute("RecordMessageActivity")]
[GlobalizedCategoryAttribute("MSSCategory")]
[ActivityValidatorAttribute(typeof(RecordMessageActivityValidator))]
[ToolboxBitmapAttribute(typeof(RecordMessageActivity))]
[DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GenericSpeechCodeDomSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(CodeDomSerializer))]
public sealed class RecordMessageActivity : SpeechCompositeActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Remarks
A RecordMessageActivity has two phases: a recording phase in which the user can record a message and an action phase, in which the user can request that a particular action be performed. The recording phase starts when the RecordTurnStarting event occurs; the action phase starts when the ActionTurnStarting event occurs.
The default action-phase grammars for a RecordMessageActivity recognize the commands shown in the following table. The table also lists methods to use if you provide custom action-phase grammars.
Command |
Description |
accept |
Accept the message that was recorded. See Accept. |
cancel |
Exit the RecordMessageActivity. See Abandon. |
continue |
Continue recording, starting at the end of the previous message. See Continue. |
play back |
Replay the message that was recorded. See Replay. |
start over |
Record a new message, abandoning the previous recorded message. See StartOver. |
There are default grammars for RecordMessageActivity for each language that ships with Speech Server. For information about the default grammars for a particular language, see:
Inheritance Hierarchy
System.Object
???? System.Workflow.ComponentModel.DependencyObject
???????? System.Workflow.ComponentModel.Activity
???????????? System.Workflow.ComponentModel.CompositeActivity
???????????????? Microsoft.SpeechServer.Dialog.SpeechCompositeActivity
????????????????????Microsoft.SpeechServer.Dialog.RecordMessageActivity
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
RecordMessageActivity Members
Microsoft.SpeechServer.Dialog Namespace
RecordTurnStarting
ActionTurnStarting
Accept
Abandon
Continue
Replay
StartOver