Share via


OnClientSilence Property

  Microsoft Speech Technologies Homepage

Gets or sets the name of a client-side function that is called when the platform detects user silence. Read/write.

Usage

ASP.NET markup: <speech:Dtmf OnClientSilence="..." />
Get value: String = Dtmf.OnClientSilence;
Set value: Dtmf.OnClientSilence = String;
Data type: String
Required: No

Remarks

The timeout event maps to the reco.onSilence event. This event is raised if there is no DTMF key press before initialtimeout expires. The event halts DTMF collection automatically. (Default processing: the QA treats this time-out as a silence.)

The value of the OnClientSilence property is the name of a custom client-side script function, without parameters or parentheses. The client-side dialog manager calls this function, using the following syntax.

The script block that contains this function should be placed before the control that calls the function. For more information, see "Placement of Script Blocks" in Authoring Notes.

Syntax

function FunctionName ()
{
     // Client-side code referenced by DTMF.OnClientSilence
}

Parameters

None.

Return Value

None.

Example

<form id="Form1" method="post" runat="server">
  <script>
    function myClientSilence() {
      // OnClientSilence routine
      return true;
    }
  </script>
  ...
  <speech:Dtmf runat="server"
    ID="Dtmf1"
    PreFlush="True"
    InitialTimeout="2500"
    InterDigitTimeout="2500"
    EndSilence="2000">
    OnClientSilence="myClientSilence"
  </speech:Dtmf>
</form>

See Also

Dtmf Class | Dtmf Constructor | Dtmf Members | Dtmf Properties | Dtmf Methods | Dtmf Events | Dtmf Remarks