選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

套用新聞播報員語音

焦點模式
套用新聞播報員語音 - Amazon Polly

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

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

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

除了預設的神經語音之外,Amazon Polly 還提供新聞播報員說話風格,使用神經系統產生電視或廣播新聞播報員風格語音。新聞播報程式風格可使用美國英文 (en-US) 的 Matthew 和 Joanna 語音、美國西班牙文 (es-US) 的 Lupe 語音,以及英文 (en-GB) 的 Amy 語音。

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

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

Console
套用 Newscaster 樣式
  1. https://console.aws.amazon.com/polly/:// 開啟 Amazon Polly 主控台。

  2. 請確定您使用支援 AWS 神經語音的區域。

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

  4. 選擇您要使用的語言和語音。只有 Matthew 和 Joanna for US English (en-US)、Lupe for US Spanish (es-US) 和 Amy for British English (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. 選擇接聽

AWS CLI
套用 Newscaster 樣式
  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>
套用 Newscaster 樣式
  1. https://console.aws.amazon.com/polly/:// 開啟 Amazon Polly 主控台。

  2. 請確定您使用支援 AWS 神經語音的區域。

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

  4. 選擇您要使用的語言和語音。只有 Matthew 和 Joanna for US English (en-US)、Lupe for US Spanish (es-US) 和 Amy for British English (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. 選擇接聽

如需 SSML 的詳細資訊,請參閱支援的 SSML 標籤

下一個主題:

聆聽語音

上一個主題:

雙語語音
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。