新聞廣播員的聲音 - Amazon Polly

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

新聞廣播員的聲音

人們會根據情境使用不同的說話風格。例如,輕鬆的交談聽起來與電視或廣播新聞非常不同。由於標準聲音的製作方式,它們無法產生不同的口語風格。然而,神經聲音可以。他們可以針對特定的口語風格進行培訓,其變化和強調語言的某些部分固有的風格。

除了默認的神經聲音外,Amazon Polly 還提供了新聞廣播員演講風格,該風格使用神經系統以電視或廣播新聞廣播的風格生成語音。新聞廣播風格是可用的馬修和喬安娜的聲音在美國英語 (zh-US), 盧佩語音在美國西班牙語 (ES-US), 和艾米的聲音在英國英語 (en-GB).

若要使用新聞播報員風格,您必須先選擇神經引擎,然後在您的輸入文字中使用以下步驟所述的語法。

注意
  • 要使用任何神經說話風格,您必須使用其中一個支持神經聲音的 AWS 區域。並非所有區域皆可提供此選項。如需詳細資訊,請參閱 功能與區域相容性

套用新聞播報員風格 (主控台)
  1. 打開 Amazon Polly 控制台在 https://console.aws.amazon.com/polly/.

  2. 確保您使用的是支持神經聲音的 AWS 區域。

  3. 在 Text-to-Speech (文字轉語音) 頁面上,針對 Engine (引擎) 選擇 Neural (神經)

  4. 選擇您要使用的語言和語音。只有馬修和喬安娜為美國英語 (zh-US), 盧佩為美國西班牙語 (ES-US), 和艾米的英式英語 (en-GB) 可在新聞廣播員的聲音.

  5. 開啟 SSML

  6. 使用新聞廣播樣式 SSML 語法將輸入文字新增至您的 text-to-speech 要求。

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