配置谷歌云 TTS 自定义语音

先决条件:

要使用自定义语音,请按照以下步骤更新 Google Cloud TTS 集成。

  1. 单击 管理员
  2. 在 “ 集成” 下,单击 “ 集成”
  3. 点击 Google Cloud 文字转语音集成。
  4. 单击 “配置” 选项卡,然后单击 “高级”
  5. Copy the JSON example below and paste it into the Advanced Configuration field. This example configuration uses two custom Google TTS voices. If you only use one voice, then you can omit the section after "en-US" }.
    {
         "customVoices": [
              {
                   "displayName": "My-Custom-Voices-1",
                    "model": "projects/112345678901234/locations/us-central1/models/XXXXXXX-XXXX-XXXX-XXXX-XXXXXX",
                    "language": "en-US"
              },
              {
                   "displayName": "My-Custom-Voices-2",
                   "model": "projects/12345678901234/locations/us-central1/models/XXXXXXX-XXXX-XXXX-XXXX-XXXXXX",
                   "language": "en-gb"
              }
         ]
    }