copyright | lastupdated | subcollection | ||
---|---|---|---|---|
|
2024-05-10 |
text-to-speech |
{{site.data.keyword.attribute-definition-list}}
{: #expressive-english}
{: #speaking-styles-en}
Table 1 provides examples of each available style
for the <express-as>
element. To demonstrate the effect of the styles, the table provides two samples for each example. The first sample speaks the text with the default en-US_EmmaExpressive
voice. The second sample speaks the same text with the same voice but with the indicated style. A request that uses the <express-as>
element fails if the style
is not one of the supported values or is omitted from the element.
{: #syntheses-expressive-interjections-en}
For English, we currently support the following interjections - aha
, hmm
, huh
, oh
, uh
, uh-huh
and um
.
Table 2 lists the interjections that the service recognizes and provides examples of how they are pronounced in synthesized speech. The samples use the en-US_AllisonExpressive
voice. The table shows the primary spelling of each interjection. The service recognizes alternative spellings for some of the interjections. For example, oh
and ohh
produce the same sound, as do hmm
and hmmm
. However, the service produces slightly different pronunciations for other alternative spellings, such as ooh
and uhm
,
{: #syntheses-expressive-interjections-ssml-en}
For English, it is possible to enable/disable the following interjections using SSML - aha
and oh
.
{: #syntheses-expressive-interjections-notes-en}
Keep the following in mind when using interjections:
- The
<say-as>
element with theinterpret-as="interjection"
attribute has no effect if the word to be modified is not one of the interjectionsaha
oroh
. - Including punctuation with the text that is to be modified can affect whether the interjection is enabled or disabled. Do not include any punctuation characters with the word inside of the
<say-as>
tag. - The word
oh
, when used colloquially to indicate the number zero, is never treated as an interjection. For example, the word is not emphasized as an interjection in the following sentence:The number is one oh three.
- The neutral style does not emphasize interjections to the extent of the default expressive voice or the other styles.