Google AI (Gemini API)语音合成AI generation

Google: Gemini 3.8 Flash-Lite TTS

google-ai.voice-gen.gemini-3-8-flash-lite-tts

Speak a text in one of 30 prebuilt voices, or a two-speaker dialogue, with Gemini 3.8 Flash-Lite TTS on Google's own API; the audio returns inline as base64 WAV (24 kHz mono).

价格
$0.035/success按供应商原价
成功率
100%近 30 天 · 550 次
延迟 p50
3.2 秒p95 8.6 秒
最后验证
2026年9月30日实测可用
POSThttps://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-tts预览
在线试用即将上线供应商文档 ↗
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

参数类型必填说明示例
路径参数
model字符串必填gemini-3.8-flash-lite-tts
  • 路径参数
  • model字符串必填

    示例:gemini-3.8-flash-lite-tts

代码示例

将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。

预览
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-tts' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"Say cheerfully: Welcome to treg, the tool catalog for your agents."}]}],"generationConfig":{"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}},"responseModalities":["AUDIO"]}}'

网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.035/success 计费,已含服务费。