Freigeben über


Async Property

  Microsoft Speech Technologies Homepage

Gets or sets whether the prompt will play asynchronously when the page navigates away. Read/write.

Usage

ASP.NET markup: <speech:DialogPrompt Async="..." />
Get value: System.Boolean = DialogPrompt.Async;
Set value: DialogPrompt.Async = System.Boolean;
Data type: System.Boolean
Required: No; Default:

Remarks

The Async property is evaluated when ASP.NET navigates to another page while a Prompt control on the current page is playing. If the Async property is True, the Prompt control continues to play. If the Async property is False, the Prompt control stops playing.

The Async property requires the PromptQueue object, which is provided with Telephony Application Services (TAS). The Async property has no effect in either Speech Add-in for Microsoft Internet Explorer or Speech Add-in for Microsoft Pocket Internet Explorer.

Example

<script>
  function GoNextBooking () {
    SpeechCommon.Navigate('NewBooking.aspx');
    return(false);
  }
</script>

<form id="Form1" method="post" runat="server">
  ...
  <speech:qa ID="ThanksQA" AllowCommands="False" PlayOnce="true" runat="server" 
    OnClientComplete="GoNextBooking" >
    <prompt ID="ThanksPrompt" Async="True" Lang="en-US" 
      InlinePrompt="Thank you. Your reservation has been booked.">
    </prompt>
  <speech:qa>

</form>

See Also

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