Partilhar via


type Attribute

  Microsoft Speech Technologies Homepage

Specifies the media-type or XML content corresponding to the speech output format used. Optional.

<content type = "mediaType" >

Remarks

For Extensible Markup Language (XML) content, typical types may be the W3C Speech Synthesis Markup Language (SSML) format (application/ssml+xml) or other formats such as "audio/x-wav," "audio/wav," "audio/basic," and "text/plain." The type attribute allows the SALT programmer to identify the format of a prompt resource and determine its compatibility before a potentially long download.

Formats required by SALT clients that support the basic media playback module are G.711 wav (audio/wav: 8kHz 8-bit mono [PCM] single channel) and headerless (audio/basic: 8kHz 8-bit mono [PCM] single channel). The compression type is expected to be in accordance with the telephony standard in the country/region where the Speech Application Platform is deployed.

If the type attribute is omitted, the Speech Platform expects the input to be an audio waveform.

Example

The following code demonstrates the use of the type attribute.

<prompt>
  <content href="/VoiceMailWelcome.ssml" type="application/ssml+xml" /> 
  After the beep, please record your message:
  <content href="/wav/beep.wav" />.
</prompt>

See Also

content Element |  href Attribute