BabbleTimeout Property
Gets or sets the time-out, in milliseconds, between the detection of speech and the return of a recognition result. Read/write.
Usage
ASP.NET markup: | <speech:Reco BabbleTimeout="..." /> |
Get value: | Int = Reco.BabbleTimeout; |
Set value: | Reco.BabbleTimeout = Int; |
Data type: | Int |
Required: | No |
Remarks
If BabbleTimeout elapses, the Speech Platform raises an onnoreco event, and returns one of several status codes.
- If a recognition platform error is detected, the control raises the onnoreco event with the client error code.
- If the recognizer is still processing audio, as in the case of an exceptionally long utterance, the control raises the onnoreco event with status code -15.
If the author does not specify BabbleTimeout, the Speech Platform defaults to an internal value. The control throws the ArgumentOutOfRangeException if BabbleTimeout is not an integer or is less than zero.
The sum of the InitialTimeout and BabbleTimeout values should be smaller than or equal to the global MaxTimeout property, or to the Reco MaxTimeout if it is set.
The BabbleTimeout property mirrors the babbletimeout attribute on the SALT listen element.
Example
<form id="Form1" method="post" runat="server">
...
<speech:QA runat="server" id="QADest" >
<Prompt InlinePrompt="Please select a destination city" ID="Prompt1">
<Params>
<speech:Param Name="bargeintype">final</speech:Param>
</Params>
</Prompt>
<Answers>
<speech:Answer SemanticItem="siDest" ID="AnsDest" XPathTrigger="/SML/CITY">
</speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000"
EndSilence="1000" MaxTimeout="30000" Reject="0.5" >
<Grammars>
<speech:Grammar Type="application/srgs+xml" Lang="en-US"
Src="Grammars/Cities.grxml" >
</speech:Grammar>
</Grammars>
</Reco>
</speech:QA>
...
</form>
See Also
Reco Class | Reco Constructor | Reco Members | Reco Properties | Reco Methods | Reco Events | Reco Remarks