返回行业内容

Gemini 3.8 Flash TTS 双模型上线:2,000+ 音色、30 秒样本即可定制声音,API 支持多角色对话编排;作者用 GPT-6 Astra 搭了自带密钥的 playground,1 分 18 秒音频约 20 秒生成、2.74 美分

Gemini 3.8 TTS Playground

评分 65

导读

谷歌发布 gemini-3.8-flash-tts 与 gemini-3.8-flash-lite-tts 两款文本转语音模型:自带 2,000 多个音色库,并可用“30 秒音频样本”定制你自己的(或你有权使用的)声音;API 易于编排多角色对话、各配不同音色与风格指令。作者利用底层 Gemini API 的开放 CORS 策略,用 GPT-6 Astra vibe-code 出一个 bring-your-own-key 的 playground 界面;实测两只鹈鹕争论搬去 Pacifica Pier 的对话,用 Flash TTS(非更便宜的 Flash-Lite)约 20 秒生成 1 分 18 秒音频、成本 2.74 美分,剧本由 Claude 4.5 Opus 代笔。

主体与标签

Google#模型发布#语音#API/工具

正文

Tool: Gemini 3.8 TTS Playground

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.

Screenshot of a web app for composing multi-speaker text-to-speech conversations, with a Compose panel on the left and Connection and Under the hood panels on the right. Left panel: "01 Compose" with a "Load example" button. "Compose settings are saved in the URL for bookmarking or sharing. Your API key is excluded." Toggle with "Single voice" and "Conversation" (Conversation selected). "Cast" section with "+ Add speaker" button. Speaker "Gus", Voice "Puck", with a remove × button. Speaker "Pearl", Voice "Kore", with a remove × button. "Give each speaker a unique name and a voice. Type to search the loaded catalog by voice ID, name, or language." "Dialogue" section with "+ Add line" button. "LINE 01" with up, down and × buttons; Speaker dropdown "Gus"; Delivery style "excited and gossipy"; text "Pearl, have you heard? Half the flock just packed up and moved to the Pacifica pier!" "LINE 02" with up, down and × buttons; Speaker dropdown "Pearl"; Delivery style "calm and unimpressed"; text "I heard. Honestly, Gus, I don't see the appeal. We've got everything we need right here at Pillar Point Harbor." Right panel: "Connection" with a "DIRECT API" badge. "Gemini API key" field showing masked dots with a "Show" button. "2,089 voices loaded. Type in any Voice field to search." "Your key stays in this page's memory and is sent directly to Google. It is never saved to browser storage." "Model" dropdown "gemini-3.8-flash-tts". "Uses your Gemini API account and quota." "Under the hood" panel with an expanded "▼ Request JSON" section showing a JSON code excerpt, a "Copy JSON" button, and an expanded "▼ Response details" section showing a JSON code excerpt.

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.

Tags: text-to-speech , gemini

打开原文 ↗