Share via


SpeechIndex Property

  Microsoft Speech Technologies Homepage

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

Remarks

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 used in the AnswerCall control.

<script>
  function myClientConnected(obj) {
    // OnClientConnected routine
    return true;
  }
  function myClientFailed(obj, status) {
    // OnClientFailed routine
    return false;
  }
</script>
<form id="Form1" method="post" runat="server">
  ...
  <speech:AnswerCall runat="server"
    ID="AnswerCall1" 
    SpeechIndex="1"
    AutoPostBack="True"
    CallingDevice="0"
    CalledDirectoryNumber="95551212"
    OnConnected="OnServerConnected"
    OnClientConnected="myClientConnected"
    OnClientFailed="myClientFailed" />
  ...
</form>

See Also

IndexedSpeechControl Class | IndexedSpeechControl Constructor | IndexedSpeechControl Members | IndexedSpeechControl Properties | IndexedSpeechControl Methods | IndexedSpeechControl Events