Condividi tramite


PlaybackUrl Property

  Microsoft Speech Technologies Homepage

Gets the URL of the recorded file on the Web server. Read-only.

Usage

Get value: String = RecordSound.PlaybackUrl;
Set value: Read-only
Data type: String

Remarks

The value of the PlaybackUrl is equivalent to the PlaybackUrlBase property concatenated with the SavedFileName property.

Example

In the following example, the RecordSound control's Done event handler uses the PlaybackUrl property to play the sound file recorded by the user.

<form id="Form1" method="post" runat="server">

  <script language="C#" runat="server">
  
    private void RecordSound1_Done(object sender, System.EventArgs e)
    {
      QA1.Prompt.InlinePrompt = "<salt:content href=\"" + RecordSound1.PlaybackUrl + "\"/>";
    }
  </script>
  
  <speech:AnswerCall id="AnswerCall1" SpeechIndex="10" runat="server">
  </speech:AnswerCall>
      
  <speech:SemanticMap id="SemanticMap" runat="server">
    <speech:SemanticItem id=SemanticItem1 runat="server" BindOnChanged="true">
    </speech:SemanticItem>
  </speech:SemanticMap>
      
  <speech:RecordSound id=RecordSound1 SpeechIndex="20" runat="server"
    AutoPostBack="True"
    BabbleTimeout="3000" InitialTimeout="3000" MaxTimeout="6000"
    Beep="False"
    Enabled="True"
    PlaybackUrlBase="https://localhost/waves/"
    SavePath="e:\waves"
    SavePartialRecord="False"
    SemanticItem="SemanticItem1"
    Type="audio/wav">
    <Prompt InlinePrompt="Please leave your message"></Prompt>
  </speech:RecordSound>
      
  <speech:QA id=QA1 SpeechIndex="30" PlayOnce="true" runat="server">
    <Prompt InlinePrompt="this InlinePrompt will be replaced">
    </Prompt>
  </speech:QA>
</form>

See Also

RecordSound Class | RecordSound Constructor | RecordSound Members | RecordSound Properties | RecordSound Methods | RecordSound Events | RecordSound Remarks