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

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

NTTS 播音员风格

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

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

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

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

  • 长篇引擎不支持新闻播音员风格。

要应用播音员风格(控制台)
  1. 通过以下网址打开 Amazon Polly 控制台:https://console.aws.amazon.com/polly/

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

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

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

    只有美国英语 (en-US) 版的 Matthew 和 Joanna 语音、美国西班牙语 (es-US) 版的 Lupe 语音以及英式英语 (en-GB) 版的 Amy 语音可用于播音员语音。

  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 标签