英语表达声音
演讲式
表 1 提供了 <express-as>
元素的每个可用 style
的示例。 为了演示样式的效果,该表为每个示例提供了两个样本。 第一个样本使用缺省 en-US_EmmaExpressive
语音来表示文本。 第二个样本使用相同的声音但使用指示的样式来讲相同的文本。 如果 style
不是受支持的值之一或从元素中省略,那么使用 <express-as>
元素的请求将失败。
样式 | 示例输入文本 | 音频样本 |
---|---|---|
cheerful |
"Oh, that's good news. I am very happy for you!" |
|
"<express-as style='cheerful'>Oh, that's good news. I am very happy for you!</express-as>" |
||
empathetic |
"Oh, I'm sorry to hear that. I know how difficult that can be." |
|
"<express-as style='empathetic'>Oh, I'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's strange. Hmm, I don't know if I've seen this before." |
|
"<express-as style='uncertain'>That's strange. Hmm, I don't know if I've seen this before.</express-as>" |
强调拒绝
对于英语,我们当前支持以下项目- aha
,hmm
,huh
,oh
,uh
,uh-huh
和 um
。
表 2 列出了服务识别的拒绝,并提供了在合成语音中如何发音的示例。 样本使用 en-US_AllisonExpressive
语音。 该表显示了每个注入的主拼写。 该服务可识别某些项目的替代拼写。 例如,oh
和 ohh
生成与 hmm
和 hmmm
相同的声音。 但是,对于其他替代拼写,服务会生成稍有不同的发音,例如 ooh
和 uhm
。
感叹词 | 示例语句 | 音频样本 |
---|---|---|
aha |
"Aha. So that's the secret." |
|
hmm |
"Hmm. I'm not sure I understand." |
|
huh |
"Huh, I hadn't noticed that." |
|
oh |
"Oh, let me get that for you." |
|
uh |
"Uh, let me check." |
|
uh-huh |
"Uh-huh, that's right." |
|
um |
"That's, um, not quite right." |
使用 SSML 启用或禁用拒绝
在英语中,可以使用 SSML 启用/禁用以下插入语--“aha
和”oh
。
拒绝的用法说明
使用拒绝时请记住以下内容:
- 如果要修改的词不是其中一个插入
aha
或oh
,那么具有interpret-as="interjection"
属性的<say-as>
元素无效。 - 将标点包含在要修改的文本中可能会影响是启用还是禁用插入。 请勿将任何标点字符与
<say-as>
标记中的单词一起包含。 - 当以口语表示数字零时,单词
oh
从不被视为插入。 例如,在以下句子中不强调该词作为注入:The number is one oh three.
- 中性风格并不强调默认表现力语音或其他风格的程度上的猜想。