Partilhar via


content Element

  Microsoft Speech Technologies Homepage

Refers to an external output resource and identifies its type.

<content href="uri" type="mediaType"> inline prompt text </content>

The content element has the following attributes:

Attributes Description
href Specifies a Uniform Resource Identifier (URI) that refers to prompt output markup or audio resource file.
type Specifies the media-type or XML content corresponding to the speech output format used. Optional.

Remarks

The content element is primarily used to refer to external content such as dynamically generated speech markup or remote audio files. However, the content element can also hold optional inline text or Extensible Markup Language (XML) content that renders in the event of a problem with the externally referenced material. This can take the form of any of the inline content possible for the prompt element except the param element. SALT platforms render the content of the resource or, if the referenced content cannot be rendered, any content specified inline.

If the type attribute is unspecified, the default type for multimodal clients is "audio/x-wav." For telephony clients, the default is "audio/basic."

Example

The following code demonstrates the use of the content element.

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

See Also

prompt Element