PlayOnce Property

  Microsoft Speech Technologies Homepage

Gets or sets whether a QA control can be activated more than once per page. Read/write.

Usage

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

Remarks

The PlayOnce property setting of True can be used to author statements such as welcoming prompts. When a QA control consists only of a Prompt and performs no recognition, setting its PlayOnce to False will cause the prompt to be played repeatedly, unless it is deactivated by the routine specified in the ClientActivationFunction property.

The default value of PlayOnce is False.

Example

<form id="Form1" method="post" runat="server">
  ...
  <Speech:QA ID="ReadyPrompt" runat="server" PlayOnce="true" AllowCommands="False">
    <Prompt runat="server" BargeIn="false" ID="Prompt4" InlinePrompt="Thank you for your order."></Prompt>
  </Speech:QA>
  ...
</form>

See Also

QA Class | QA Constructor | QA Members | QA Properties | QA Methods | QA Events | QA Remarks | QA Client Object