This topic has not yet been rated - Rate this topic

ssml:sub Element

Speech Server 2007

Specifies a string of text to speak in place of the text contained in the element.

<ssml:sub alias="string"> </ssml:sub>

Term Definition

alias

Required. Specifies the substitute text.

Before synthesizing a phrase, the text-to-speech (TTS) engine normalizes it. The normalization process converts symbols, numbers, and other non-orthographic entities into text representing the spoken value of these entities. For example, normalization converts "$1.99" into "one dollar and ninety-nine cents."

Use a ssml:sub element to create a custom text value for any text element. Because the TTS engine processes ssml:sub elements before normalizing the phrase, the substitute text is normalized before being synthesized.

<?xml version="1.0" encoding="ISO-8859-1"?>
<ssml:speak version="1.0"
 xmlns:ssml="http://www.w3.org/2001/10/synthesis"
 xml:lang="en-US">

<!--Instruct the text-to-speech engine to pronounce
the string "SAPI" as "Speech A. P. I."-->

<ssml:sub alias="Speech A. P. I."> SAPI </ssml:sub>

</ssml:speak>
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ