Google AI Studio Text to Speech: Make a Voice-Over and a Dialogue
Make a one-minute narration and a two-speaker dialogue in the Speech Playground. Choose voices, direct the delivery and download the audio or save a WAV.
Published

For Google AI Studio text to speech, open the Speech Playground and choose Gemini 3.8 Flash TTS. For a 60-second voice-over, give one voice the words to read and a separate instruction for how to read them. To turn the same scene into a conversation, assign each part a prebuilt voice, then generate, listen and download.
Make a 60-second narration with Google AI Studio text to speech
Start with a script you could hand to a narrator. Google's public Speech Playground guide links straight to the speech tool, which asks you to sign in. If you came looking for “Google AI Studio text to voice,” this is the same workflow. For an introduction to the other parts of the workspace, see what Google AI Studio does.
Suppose you're making a museum video. Its opening shot shows a worn stone step. Its last shot reveals a side door. The voice-over should give viewers a reason to look at the wear before the camera moves. Here's a script to try.
Look down at the step before you look up at the doorway. The stone dips in the middle. From across the room it looks like a shadow, but watch what happens when the light moves. The hollow stays where it is. Every person who came through this door put a foot in roughly the same place. Now follow the camera to the smaller door on the left. Its step is made of the same stone, yet the edge is still square. If you had to guess which entrance led to the busy street, which would you choose? On your next walk, look for a doorway like this one. Sometimes the best clue to what happened in a building is right under your feet.
Choose the model and a single speaker
Open the Speech Playground from the link above. Select Gemini 3.8 Flash TTS and set up a single speaker. Google recommends Flash for expressive narration and dialogue. Its other current model, Gemini 3.8 Flash-Lite TTS, is geared toward high-volume work such as reading a catalogue aloud. Both reached general availability on September 22, 2026. Google's release notes
Cast the voice and paste the script
Choose Kore, a prebuilt voice Google describes as firm. Paste the museum paragraph into the script field. Keep the camera instructions in your edit notes. Anything written as ordinary transcript text is something you're asking the voice to say.
Direct the reading
Give the speaker this style instruction in the delivery control: “Speak like a museum guide addressing one visitor. Start quietly. Give the listener time to look down.” For a pause at one precise cut, insert
<short pause>just after “The hollow stays where it is.” The style applies across the turn. The tag marks one instant.Generate, listen against the picture and download
Run the generation and play the result alongside your video. Does “smaller door” land when that door appears? If the voice is still describing the first step, try cutting “From across the room it looks like a shadow” before asking for a faster read. Generate again, then use Download on the finished audio. Save the take with a descriptive name such as
museum-guide-koreso you can find it beside your edit.

A minute is your editing target. A direction such as “unhurried” leaves room for the voice to interpret the pace. Check the downloaded take's duration before you lock the picture.
Cast the same scene as a two-speaker dialogue
Keep the step and the side door. Give the visitor the discovery that the narrator used to explain. Now the change of voice tells the listener who noticed the clue.
- Open a two-speaker dialogue in the Playground. Assign Guide to Kore and Visitor to Puck, Google's upbeat prebuilt voice.
- Enter these turns in order. Put the names in the speaker assignment for each turn and the words in its script field.
- Give Guide the direction “patient, leaving space for an answer” and Visitor the direction “curious, then certain.” Generate the conversation, listen through the handoff and download the dialogue as a separate file.
Guide: Look at the step in front of you. What do you see?
Visitor: I thought that was a shadow. But the light moved and the dark patch stayed.
Guide: Exactly. Now look at the smaller door. Which entrance do you think led to the street?
Visitor: This one. You can see where everybody put their foot.

A single request supports up to two prebuilt speakers. If each character needs a custom-designed voice, generate their turns individually and arrange the clips in your editor. That also gives you a clean way to replace the visitor's last answer without touching the guide's timing. Google's speech generation guide
How much script fits in one take?
The published Gemini 3.8 Flash TTS API limit is 8,192 input tokens and 16,384 output tokens per request. Tokens are the units Google counts for text going in and audio coming out. At 25 audio tokens per second, the output ceiling works out to about 10 minutes and 55 seconds. A script can hit its input limit sooner. For a gallery tour, save a take per exhibit so that replacing one label doesn't mean regenerating the entire walk. These figures were checked against Google's model specifications on November 25, 2026.
Choosing a voice and language in the Google AI voice generator
Start with the 30 curated prebuilt voices in the API guide when you need a pair for dialogue. Google also describes a broader library of over 2,000 voices. These figures count different collections. Flash detects the language of the supplied script and supports over 130 languages. Flash-Lite supports over 100. Google’s model-by-model language list For a Spanish version of the museum clip, supply the Spanish script and listen to the place names before generating the full tour. Google's voice library and delivery guide
You can try speech on the free tier, subject to quotas. In the API, limits apply per project and vary by model and tier. Check the active limits for your project before planning a batch of recordings. Google's rate limits · How the AI Studio free plan works
On the standard paid Flash TTS API, a million text input tokens cost $0.50 and a million audio output tokens cost $9 through December 31, 2026. From January 1, 2027, Google lists $1 and $18 respectively. Google's API pricing
Save the same narration from the Gemini API
Use the API when the script lives in your app or you need a repeatable export. Google's short Python example says one sentence in Kore's voice and writes a playable out.wav in the directory where you run it. Install the supported SDK with python -m pip install --upgrade 'google-genai>=2.25.0'. Google’s speech SDK requirements
Set your Gemini API key in the GEMINI_API_KEY environment variable. Google's setup guide
import base64
from google import genai
client = genai.Client(http_options={"api_version": "v1beta"})
interaction = client.interactions.create(
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"},
]
},
)
with open("out.wav", "wb") as f:
f.write(base64.b64decode(interaction.output_audio.data))To produce the museum narration, replace “Have a wonderful day!” with the script and “cheerful and friendly” with the guide's delivery instruction. This non-streaming call returns a complete WAV file after decoding. If you switch to streaming, the default chunks contain raw audio samples without a WAV header.
For dialogue, supply each line as its own text item. Set its speech_metadata.speaker to Guide or Visitor and give it a turn-level style. Change speech_config from the single-voice list to an object with a speakers list pairing each name with its voice. Match the names exactly. A line assigned to Guide should point back to Kore every time.
Can you publish the voice-over?
Google says it claims no ownership over original content generated with the service. Similar output can be generated for someone else. You remain responsible for how you use and share it, including any attribution applicable law requires. For the museum video, clear the script and any third-party rights before distributing the recording. For confidential client copy, check which data terms apply to your account. Under Google's US unpaid-service terms, human reviewers may process submissions. Gemini API additional terms
Google prohibits impersonating someone without explicit disclosure in order to deceive, and falsely claiming that AI-generated content was created solely by a human in order to deceive. For the fictional museum guide, a straightforward production credit is “Narration generated with Gemini.” Treat that as a suggested credit and check your distributor's requirements. Google's prohibited use policy
When a dedicated voice tool earns its place
Stay in the Playground for a short script and one finished take. Move to the API when the next recording needs to come from code. Consider a dedicated voice editor when the deliverable is an editable project: a producer needs to replace one line, a client needs to approve individual takes, or a cast has more than two recurring speakers. Ask to see a line replacement on your own script before you choose a tool.
For a first look at a dedicated workflow, follow the Fish Audio voice-over walkthrough. If you're comparing editing workflows, start with the ElevenLabs alternatives. For a broader shortlist, compare text-to-speech tools by use case or AI voice generators for creators.
- Published
- Category
- Build








