IBM Cloud Docs
英语表达声音

英语表达声音

演讲式

表 1 提供了 <express-as> 元素的每个可用 style 的示例。 为了演示样式的效果,该表为每个示例提供了两个样本。 第一个样本使用缺省 en-US_EmmaExpressive 语音来表示文本。 第二个样本使用相同的声音但使用指示的样式来讲相同的文本。 如果 style 不是受支持的值之一或从元素中省略,那么使用 <express-as> 元素的请求将失败。

演讲风格
样式 示例输入文本 音频样本
cheerful "Oh, that&apos;s good news. I am very happy for you!"
"<express-as style='cheerful'>Oh, that&apos;s good news. I am very happy for you!</express-as>"
empathetic "Oh, I&apos;m sorry to hear that. I know how difficult that can be."
"<express-as style='empathetic'>Oh, I&apos;m sorry to hear that. I know how difficult that can be.</express-as>"
neutral "A five-alarm fire early this morning claimed the lives of more than a dozen residents."
"<express-as style='neutral'>A five-alarm fire early this morning claimed the lives of more than a dozen residents.</express-as>"
uncertain "That&apos;s strange. Hmm, I don&apos;t know if I&apos;ve seen this before."
"<express-as style='uncertain'>That&apos;s strange. Hmm, I don&apos;t know if I&apos;ve seen this before.</express-as>"

强调拒绝

对于英语,我们当前支持以下项目- ahahmmhuhohuhuh-huhum

表 2 列出了服务识别的拒绝,并提供了在合成语音中如何发音的示例。 样本使用 en-US_AllisonExpressive 语音。 该表显示了每个注入的主拼写。 该服务可识别某些项目的替代拼写。 例如,ohohh 生成与 hmmhmmm 相同的声音。 但是,对于其他替代拼写,服务会生成稍有不同的发音,例如 oohuhm

强调的插入语
感叹词 示例语句 音频样本
aha "Aha. So that&apos;s the secret."
hmm "Hmm. I&apos;m not sure I understand."
huh "Huh, I hadn&apos;t noticed that."
oh "Oh, let me get that for you."
uh "Uh, let me check."
uh-huh "Uh-huh, that&apos;s right."
um "That&apos;s, um, not quite right."

使用 SSML 启用或禁用拒绝

在英语中,可以使用 SSML 启用/禁用以下插入语--“aha 和”oh

拒绝的用法说明

使用拒绝时请记住以下内容:

  • 如果要修改的词不是其中一个插入 ahaoh,那么具有 interpret-as="interjection" 属性的 <say-as> 元素无效。
  • 将标点包含在要修改的文本中可能会影响是启用还是禁用插入。 请勿将任何标点字符与 <say-as> 标记中的单词一起包含。
  • 当以口语表示数字零时,单词 oh 从不被视为插入。 例如,在以下句子中不强调该词作为注入: The number is one oh three.
  • 中性风格并不强调默认表现力语音或其他风格的程度上的猜想。