Reject Property
Gets or sets the rejection threshold of recognition confidence, below which the platform will raise a noreco event. Read/write.
Usage
ASP.NET markup: | <speech:Reco Reject="..." /> |
Get value: | Float = Reco.Reject; |
Set value: | Reco.Reject = Float; |
Data type: | Float |
Required: | No; Default: 0 |
Remarks
Valid values of Reject can range from 0 to 1. The default value is platform specific.
The control throws the ArgumentOutOfRangeException for out-of-range Reject values.
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