Using the Newscaster Style - Amazon Polly
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with AWS services in China.

Using the Newscaster Style

The Newscaster style is available only for the Matthew, Joanna, and Lupe voices, using the neural engine. To use the Newscaster style, first choose the neural engine and then use the syntax described in the following steps in your input text.

Note

To use any neural speaking style, you must use one of the AWS Regions that support neural voices. This option is not available in all Regions. For more information, see Feature and Region Compatibility.

To apply the Newscaster style (console)

  1. Open the Amazon Polly console at https://console.amazonaws.cn/polly/.

  2. Ensure that you are using an AWS Region where neural voices are supported.

  3. On the Text-to-Speech page, for Engine, choose Neural.

  4. Choose the language and voice you want to use.

    Only Matthew and Joanna for American English (en-US) and Lupe for US Spanish (es-US) are available for the newscaster voice.

  5. Choose the SSML tab.

  6. Add input text to your text-to-speech request using the Newscaster style SSML syntax.

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

    For example, you might use the newscaster tag as follows:

    <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. Choose Listen to Speech.

To apply the Newscaster style (CLI)

  1. In your API request, include the engine parameter with the neural value:

    --engine neural
  2. Add input text to your API request using the Newscaster style SSML syntax.

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

    For example, you might use the newscaster tag as follows:

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

For more information about SSML, see Supported SSML Tags.