Simon Willison 用 Gemini 3.8 TTS 搭建自带密钥语音 Playground
Tool: Gemini 3.8 TTS Playground
Google 发布 gemini-3.8-flash-tts 和 gemini-3.8-flash-lite-tts 两款文本转语音模型,提供超过 2000 种音色,并支持用 30 秒音频样本创建自定义音色。Simon Willison 借助 Gemini API 的开放 CORS 策略,用 GPT-6 Astra 快速搭建了一个自带密钥的 Playground,并演示了多角色对话的语音生成。他实测用 Gemini 3.8 Flash TTS 生成 1 分 18 秒音频约耗时 20 秒,成本 2.74 美分。
推荐理由
AI 评分 59
作者用自建 playground 实测 Gemini 3.8 TTS,给出 2000+ 音色、30 秒克隆和生成成本等可复用细节。
主题
正文
23rd September 2026
Google released two new Gemini text-to-speech models today - gemini-3.8-flash-tts and gemini-3.8-flash-lite-tts .
They come with a library of over 2,000 voices, plus the ability to create a custom voice with "just a 30-second audio sample of your voice or a voice you have the rights to use".
I vibe coded this bring-your-own-key playground interface with GPT-6 Astra, taking advantage of the open CORS policy of the underlying Gemini API.
A notable feature of the API is that it makes it easy to define a full conversation between multiple characters, each with different voices and voice style instructions.
Here's a short demo clip of a conversation between two pelicans debating if they should move to the Pacifica Pier . I had Claude 4.5 Opus write the script and generate a URL to render it using the tool .
Your browser does not support the audio element.
It took ~20 seconds to generate 1m 18s of audio using Gemini 3.8 Flash TTS (not the cheaper Flash-Lite), at a cost of 2.74 cents.
This is a beat by Simon Willison, posted on 23rd September 2026 .
Pay me to send you less!