SpeechIndex Property for French (Canada)
Gets or sets the activation order of the control, relative to other Speech Controls on the page. Read/write.
Usage
ASP.NET markup: | <speech:SpeechControl SpeechIndex="..." /> |
Get value: | Int = SpeechControl.SpeechIndex; |
Set value: | SpeechControl.SpeechIndex = Int; |
Data type: | Int |
Required: | No |
SpeechIndex can be used by dialogue authors to modify the order in which the client-side dialog manager RunSpeech activates the control. See the Activation and Semantic Processing topic for more details.
The value of SpeechIndex must be a positive integer. The control throws an exception for non-valid values of SpeechIndex.
Example
The following example demonstrates the SpeechIndex property that is used in QA controls.
<form id="Form1" method="post" runat="server">
...
<Speech:QA id="CoffeeType" SpeechIndex="1" runat="server">
<Prompt InlinePrompt="quel est sorte de café est-ce que vous aimez?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siCoffeeType" ID="CoffeeType_QACoffeeType" XPathTrigger="./CoffeeType"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G1"></Speech:Grammar>
</Grammars>
</Reco>
<ExtraAnswers>
<Speech:Answer SemanticItem="siSize" ID="Size_QACoffeeType" XPathTrigger="./Size"></Speech:Answer>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QACoffeeType" XPathTrigger="./Milk"></Speech:Answer>
</ExtraAnswers>
</Speech:QA>
<Speech:QA id="Size" SpeechIndex="2" runat="server">
<Prompt InlinePrompt="quel est la taille que vous aimez?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siSize" ID="Size_QASize" XPathTrigger="./Size"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000" ID="Reco1">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G2"></Speech:Grammar>
</Grammars>
</Reco>
<ExtraAnswers>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QASize" XPathTrigger="./Milk"></Speech:Answer>
</ExtraAnswers>
</Speech:QA>
<Speech:QA id="Milk" SpeechIndex="3" runat="server">
<Prompt InlinePrompt="lait entier ou sans gras?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QA3" XPathTrigger="./Milk"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000" ID="Reco2">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G3"></Speech:Grammar>
</Grammars>
</Reco>
</Speech:QA>
...
</form>
See Also
IndexedSpeechControl Class | IndexedSpeechControl Constructor | IndexedSpeechControl Members | IndexedSpeechControl Properties | IndexedSpeechControl Methods | IndexedSpeechControl Events