Condividi tramite


Type Property

  Microsoft Speech Technologies Homepage

Gets or sets the MIME type of the recording. Read/write.

Usage

ASP.NET markup: <speech:RecordSound Type="..." />
Get value: String = RecordSound.Type;
Set value: RecordSound.Type = String;
Data type: String
Required: No; Default: audio/x-wav

Remarks

Typical MIME types include audio/wav for WAV (RIFF header) 8kHz 8-bit mono mu-law or PCM single channel, and audio/basic for raw (headerless) 8kHz 8-bit mono mu-law or PCM single channel.

Example

<form id="Form1" method="post" runat="server">
  ...
  <script>
  function ClientIsActiveHandler() {
    return true;
  }
  function ClientErrorHandler() {
    return false;
  }
  function ClientNoRecoHandler() {
    return false;
  }
  </script>

  <speech:RecordSound SpeechIndex="1" runat="server"
    Beep="true"
    Type="audio/wav"
    EndSilence=500
    StopOnDtmf=DtmfSquare
    SavePartialRecord="True"
    SemanticItem="siRecordedFile"
    PlaybackUrlBase="http://www.cpandl.com/playback/"
    SavePath="d:\vdirs\playback"
    ClientActivationFunction="ClientIsActiveHandler"
    OnClientError="ClientErrorHandler"
    OnClientNoReco="ClientNoRecoHandler"
  >
  ...
</form>

See Also

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