Applying the newscaster voice
People use different speaking styles, depending on context. Casual
conversation, for example, sounds very different from a TV or radio
newscast. Because of the way standard voices are made, they can't
produce different speaking styles. However, neural voices can. They can
be trained for a specific speaking style, with the variations and
emphasis on certain parts of speech inherent in that style.
In addition to the default neural voices, Amazon Polly provides a newscaster
speaking style that uses the neural system to generate speech in the
style of a TV or radio newscaster. The Newscaster style is available
with the Matthew and Joanna voices in US English (en-US), the Lupe voice
in US Spanish (es-US), and the Amy voice in British English
(en-GB).
To use the Newscaster style, first choose the neural engine and then
use the syntax described in the following steps in your input
text.
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.
- Console
-
To apply the Newscaster style
-
Open the Amazon Polly console at https://console.aws.amazon.com/polly/.
-
Make sure that you are using an AWS Region where neural
voices are supported.
-
On the Text-to-Speech page, for Engine,
choose Neural.
-
Choose the language and voice you want to use.
Only Matthew and Joanna for US English (en-US), Lupe for US
Spanish (es-US), and Amy for British English (en-GB) are
available in the newscaster voice.
-
Turn on SSML.
-
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>
-
Choose Listen.
- AWS CLI
-
To apply the Newscaster style
-
In your API request, include the engine parameter with the
neural
value:
--engine neural
-
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.