Partilhar via


StopOnDtmf Property

  Microsoft Speech Technologies Homepage

Gets or sets the telephone key that determines when to stop recording. Read/write.

Usage

ASP.NET markup: <speech:RecordSound StopOnDtmf="..." />
Get value: String = RecordSound.StopOnDtmf;
Set value: RecordSound.StopOnDtmf = String;
Data type: DtmfKey
Required: No; Default: DtmfAll

Remarks

Values of the StopOnDtmf property are expressed as members of the DtmfKey enumeration.

Example

In the following example, the asterisk (*) key is specified as the DTMF key that stops sound recording.

<speech:RecordSound runat="server"
  ID="RecordSound1"
  Beep="True"
  Type="audio/wav"
  InitialTimeout="2500"
  BabbleTimeout="2500"
  MaxTimeout="5000"
  EndSilence="2000"
  StopOnDtmf=DtmfStar
  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