Compartir a través de


BabbleTimeout Property

  Microsoft Speech Technologies Homepage

Gets or sets the BabbleTimeout property of the control's internal Reco element. Read/write.

Usage

ASP.NET markup: <speech:RecordSound BabbleTimeout="..." />
Get value: Int = RecordSound.BabbleTimeout;
Set value: RecordSound.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 RecordSound control throws an exception 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 RecordSound MaxTimeout if it is set.

The BabbleTimeout property mirrors the babbletimeout attribute on the SALT listen element.

Example

<speech:RecordSound runat="server"
  ID="RecordSound1"
  Beep="True"
  Type="audio/wav"
  InitialTimeout="2500"
  BabbleTimeout="2500"
  MaxTimeout="5000"
  EndSilence="2000"
  StopOnDtmf=DtmfSquare
  SavePartialRecord="True"
  PlaybackUrlBase="http://www.cpandl.com/playback/"
  SavePath="d:\vdirs\playback"
  Enabled="True">
</speech:RecordSound>

See Also

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