Partager via


RecordMessageActivity.RecordedFilePath 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 name and path of the file in which recorded audio is written.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<GlobalizedCategoryAttribute("NonDesignableCategory")> _
<ReadOnlyAttribute(True)> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
<GlobalizedDescriptionAttribute("RecordingCommon_RecordedFilePath")> _
Public Property RecordedFilePath As String
[GlobalizedCategoryAttribute("NonDesignableCategory")] 
[ReadOnlyAttribute(true)] 
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] 
[GlobalizedDescriptionAttribute("RecordingCommon_RecordedFilePath")] 
public string RecordedFilePath { get; }

Property Value

The name of the file in which recorded audio is written, or null if nothing is recorded.

Example

The following example shows the TurnStarting event handler for a StatementActivity named playMessage. The MainPrompt for playMessage plays an audio file previously recorded in a RecordMessageActivity and stored at the location represented by RecordedFilePath.

private void playMessage_TurnStarting(object sender, 
TurnStartingEventArgs e)
{
  this.playMessage.MainPrompt.ClearContent();
  this.playMessage.MainPrompt.AppendAudio(
  this.recordMessage.RecordedFilePath);
}

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 Class
RecordMessageActivity Members
Microsoft.SpeechServer.Dialog Namespace