NTTS 播音员说话风格 - Amazon Polly
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

NTTS 播音员说话风格

人们会根据上下文使用不同的讲话风格。例如,非正式对话听起来与电视或电台新闻广播有很大不同。由于制作标准语音的方式,这些语音不能产生不同的说话风格。但是,神经声音可以。他们可以针对特定的说话风格进行训练,体现这种风格固有的某些部分语音的语调变化和重音。

除了默认神经语音之外,Amazon Polly 还提供播音员语音风格,该风格使用神经系统来生成电视或电台播音员风格的语音。播音员风格适用于美国英语 (en-US) 版的 Matthew 和 Joanna 语音、美国西班牙语 (es-US) 版的 Lupe 语音以及英国英语 (en-GB) 版的 Amy 语音。

要使用播音员风格,请先选择神经引擎,然后在输入文本中使用以下步骤中描述的语法。

注意

要使用任何神经网络语言风格,您需要使用Amazon支持神经声音的地区。此选项并非在所有区域中都可用。有关更多信息,请参阅功能和区域兼容性

要应用播音员风格(控制台)
  1. 从打开 Amazon Polly 控制台https://console.aws.amazon.com/polly/.

  2. 确保您使用的是Amazon支持神经语音的区域。

  3. 在文本到语音转换页面上,对于 Engine (引擎),选择 Neural (神经)

  4. 选择您想要使用的语言和语音。

    播音员语音只有美国英语 (en-US) 版的 Matthew 和 Joanna 语音,美国西班牙语 (es-US) 版的 Lupe 语音提供英国英语 (en-GB) 版。

  5. 启用 。SSML.

  6. 使用播音员风格 SSML 语法将输入文本添加到文本转语音请求中。

    <amazon:domain name="news">text</amazon:domain>

    例如,您可以按以下所示使用播音员语音标签:

    <speak> <amazon:domain name="news"> From the Tuesday, April 16th, 1912 edition of The Guardian newspaper: The maiden voyage of the White Star liner Titanic, the largest ship ever launched ended in disaster. The Titanic started her trip from Southampton for New York on Wednesday. Late on Sunday night she struck an iceberg off the Grand Banks of Newfoundland. By wireless telegraphy she sent out signals of distress, and several liners were near enough to catch and respond to the call. </amazon:domain> </speak>
  7. 选择侦听器.

要应用播音员风格 (CLI)
  1. 在您的 API 请求中,包含具有 neural 值的引擎参数:

    --engine neural
  2. 使用播音员风格 SSML 语法将输入文本添加到 API 请求中。

    <amazon:domain name="news">text</amazon:domain>

    例如,您可以按以下所示使用播音员语音标签:

    <speak> <amazon:domain name="news"> From the Tuesday, April 16th, 1912 edition of The Guardian newspaper: The maiden voyage of the White Star liner Titanic, the largest ship ever launched ended in disaster. The Titanic started her trip from Southampton for New York on Wednesday. Late on Sunday night she struck an iceberg off the Grand Banks of Newfoundland. By wireless telegraphy she sent out signals of distress, and several liners were near enough to catch and respond to the call. </amazon:domain> </speak>

有关 SSML 的更多信息,请参阅支持的 SSML 标签