Partilhar via


MaxTimeout Property

  Microsoft Speech Technologies Homepage

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

Usage

ASP.NET markup: <speech:RecordSound MaxTimeout="..." />
Get value: Int = RecordSound.MaxTimeout;
Set value: RecordSound.MaxTimeout = Int;
Data type: Int
Required: No

Remarks

If MaxTimeout elapses, the browser raises an onerror event. The RecordSound control throws an exception for non-integer or negative integer values.

The sum of the InitialTimeout and BabbleTimeout values should be smaller than or equal to the global MaxTimeout property, or to the RecordSound MaxTimeout property if it is set.

The MaxTimeout property mirrors the maxtimeout 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