PreFetch Property
Gets or sets whether the Prompt control downloads the content prior to playing. Read/write.
ASP.NET markup: | <speech:Prompt PreFetch="..." /> |
Get value: | Bool = Prompt.PreFetch; |
Set value: | Prompt.PreFetch = Bool; |
Data type: | Bool |
Required: | No; Default: False |
Remarks
The PreFetch property mirrors the prefetch attribute of the Speech Application Language Tags (SALT) prompt element.
Example
The following example demonstrates the PreFetch property.
<form id="Form1" method="post" runat="server">
...
<asp:label runat=server>Destination City: </asp:label>
<asp:textbox id="txtDest" runat=server></asp:textbox>
<speech:Prompt
ID="Prompt1" runat="server"
AutoPostBack="True"
PreFetch="True"
BargeIn="True"
lang="en-US">
<Params>
<speech:Param Name="BargeInType">final</speech:Param>
</Params>
<InlineContent> What is your destination city? </InlineContent>
</speech:Prompt>
<speech:Listen id="Listen1" runat="server"
BabbleTimeout="2000" MaxTimeout="5000" Reject="0.2">
<bindings>
<speech:bind TargetElement="txtDest" TargetAttribute="value"
value="./City" runat="server"/>
</bindings>
<grammars>
<speech:grammar runat="server"
src="Grammars/CityGrammar.grxml" ID="Grammar1" />
</grammars>
</speech:Listen>
...
</form>
See Also
Prompt Class | Prompt Constructor | Prompt Members | Prompt Properties | Prompt Methods | Prompt Events | Prompt Remarks