非官方指南,與 Meta 無關。

最後更新:

Gemini 3.8 Flash TTS:價格、語音與 API 教學

Google 於 2026 年 9 月 23 日推出 Gemini 3.8 Flash TTS 和 Gemini 3.8 Flash-Lite TTS。Flash TTS 是表現力豐富的模型,適合旁白、有聲書和角色配音;Flash-Lite TTS 較便宜,適合配音翻譯和語音代理。本頁涵蓋每小時價格、語音、程式碼,以及開始開發前需要知道的限制。

重點摘要: Flash TTS 每 1M 文字輸入 token $0.50、每 1M 音訊輸出 token $9,至 2026 年 12 月 31 日每小時語音約 $0.81(2027 年起 $1.62)。Flash-Lite TTS 每小時約 $0.54。兩者都可在 Google AI Studio 免費試用。單次請求最多回傳約 10.9 分鐘的音訊。

Gemini 3.8 Flash TTS 規格一覽

項目Gemini 3.8 Flash TTS
發布日期2026 年 9 月 23 日
模型 IDgemini-3.8-flash-tts, gemini-3.8-flash-lite-tts
輸入 / 輸出輸入文字,輸出音訊(預設 WAV;也支援 PCM、mu-law 和 A-law)
Token 上限輸入 8,192、輸出 16,384 token(約 10.9 分鐘音訊)
語言130+ 種,可自動偵測語言(Google 發表文章寫的是 100+ 種)
語音30 種預建語音、2,000+ 種語音的語音庫,還能使用你自行設計或複製的語音
每次請求的說話者使用預建語音時最多兩位
Batch、Flex、Priority支援

來源: Gemini 3.8 Flash TTS 模型頁面

來源: Google TTS 發表文章

Gemini 3.8 Flash TTS 價格

音訊輸出以每秒 25 個 token 計費,因此很容易換算每小時價格。首發價適用至 2026 年 12 月 31 日;2027 年 1 月 1 日起改用標準價。

文字輸入 / 1M音訊輸出 / 1M每小時音訊(2026)每小時(2027)
Flash TTS$0.50$9$0.81$1.62
Flash-Lite TTS$0.50$6$0.54$1.08
Flash TTS,Batch 或 Flex$0.25$4.50$0.41-
Flash-Lite TTS,Batch 或 Flex$0.25$3$0.27-

每小時金額是我們依 Google 的每 token 價格自行換算,不含金額很小的文字輸入費用。免費方案涵蓋兩個模型;免費方案的輸入內容可能被用來改善 Google 產品。

來源: Gemini API 定價

Python 範例

  1. 在 Google AI Studio 建立金鑰,並存成環境變數 GEMINI_API_KEY。
  2. pip install -U google-genai。
  3. 要唸出的文字放在 text,語氣表現(情緒、語速、口吻)放在 style 註記,而不是寫進文字裡。
  4. 選擇語音,並將 base64 音訊寫入 .wav 檔。
# pip install -U google-genai
import base64
from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.8-flash-tts",
    input=[{
        "type": "user_input",
        "content": [{
            "type": "text",
            "text": "Have a wonderful day! <short pause> See you tomorrow.",
            "annotations": [{"type": "speech_metadata", "style": "cheerful and friendly"}],
        }],
    }],
    response_format={"type": "audio"},
    generation_config={"speech_config": [{"voice": "Kore"}]},
)

with open("out.wav", "wb") as f:
    f.write(base64.b64decode(interaction.output_audio.data))

來源: 語音生成文件

curl 範例

curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.8-flash-tts",
    "input": [{
      "type": "user_input",
      "content": [{
        "type": "text",
        "text": "Have a wonderful day!",
        "annotations": [{ "type": "speech_metadata", "style": "cheerful and friendly" }]
      }]
    }],
    "response_format": { "type": "audio" },
    "generation_config": { "speech_config": [{ "voice": "Kore" }] }
  }' | jq -r '[.steps[] | select(.type=="model_output") | .content[] | select(.type=="audio")] | last | .data' \
     | base64 --decode > out.wav

來源: 語音生成文件

雙人對話與行內提示

在 speech_config 中為每位說話者命名一次,接著為每段發言標上說話者和選用的 style。短暫的聲音事件直接寫在文字中:<laughs>、<sigh>、<gasp>、<short pause>,以及 |mhm| 或 |yeah| 這類附和聲。

# Two speakers in one request (the most a request allows with prebuilt voices)
generation_config={"speech_config": {"speakers": [
    {"speaker": "Host", "voice": "Kore"},
    {"speaker": "Guest", "voice": "Puck"},
]}}

input=[{"type": "user_input", "content": [
    {"type": "text", "text": "Welcome back to the show. <laughs> Big week.",
     "annotations": [{"type": "speech_metadata", "speaker": "Host", "style": "warm, upbeat"}]},
    {"type": "text", "text": "|mhm| It really was.",
     "annotations": [{"type": "speech_metadata", "speaker": "Guest", "style": "relaxed"}]},
]}]

文字會被當成逐字腳本唸出,因此寫在文字裡的舞台指示可能會被念出來。請把它們放在 style 中。

來源: 語音生成文件

來源: Google TTS 發表文章

語音、語音設計與聲音複製

來源: Google TTS 發表文章

來源: Gemini 3.8 Flash TTS 模型頁面

效果如何?

Google 引用 Hume AI 的 Voice Design Benchmark:Flash TTS 以整體 71.4 分、口音建模 60.8 分排名第一,在 Hume 的整體品質指數上也拿下第一和第二名(Flash 第一、Flash-Lite 第二)。在 Voice Arena 盲測中,兩個模型在日語、巴西葡萄牙語、越南語、阿拉伯語、墨西哥西班牙語和印地語都名列前茅。這些是廠商引用的結果,選擇前請先聽聽用你自己的腳本生成的效果。

來源: Google TTS 發表文章

Flash TTS 還是 Flash-Lite TTS?

Gemini 3.8 Flash API 教學 · 所有模型價格

來源: Google TTS 發表文章

來源: Gemini 3.8 Flash TTS 模型頁面

常見問題

Gemini 3.8 Flash TTS 多少錢?

至 2026 年 12 月 31 日為每 1M 文字 token $0.50、每 1M 音訊 token $9,每小時音訊約 $0.81。2027 年起價格加倍,每小時約 $1.62。

Gemini 3.8 Flash TTS 可以免費用嗎?

可以透過 Google AI Studio 的 Gemini API 免費方案免費使用,但有速率限制。免費方案的資料可能被用來改善 Google 產品。

模型 ID 是什麼?

gemini-3.8-flash-tts;較便宜的 Flash-Lite 版本則是 gemini-3.8-flash-lite-tts。

單次請求最長可以多長?

輸出上限為 16,384 token,以每秒 25 token 計算約 10.9 分鐘。較長的腳本請分章節處理。

它可以複製我的聲音嗎?

可以,只需約 30 秒的樣本,並內建同意驗證。在 AI Studio 中,此功能不開放給伊利諾州、德州、歐洲經濟區、英國、瑞士和印度。

支援多少種語言?

模型頁面列出 130+ 種語言,並可自動偵測。

本文為獨立指南,與 Google 或 Anthropic 皆無關聯。價格與基準測試結果會變動,決定預算前請先查看文中連結的官方頁面。