Gemini Text-to-Speech Is Now Available in Puter.js
On this page
Puter.js now supports Gemini Text-to-Speech, giving developers free access to Google's latest TTS models with 30 voices, natural-sounding speech, and style control through natural language instructions.
What is Gemini TTS?
Gemini TTS is Google's text-to-speech offering built on top of the Gemini model family. It supports three models and a wide range of voices, making it easy to find the right combination for your project. Key features include:
- Three models:
gemini-2.5-flash-preview-tts,gemini-2.5-pro-preview-tts, and the latestgemini-3.1-flash-tts-preview - 30 unique voices: From bright and upbeat to firm and informative, each voice has its own character
- Style instructions: Control tone, speed, and mood using plain English instructions
- High-quality output: Natural prosody and expressive speech powered by Gemini
Through Puter.js, you get all of this completely free, no registration required, no API keys.
Examples
Basic text-to-speech
puter.ai.txt2speech("Hello! This is Gemini text-to-speech.", {
provider: "gemini"
}).then(audio => {
audio.play();
});
Choose a voice and model
const audio = await puter.ai.txt2speech(
"Welcome to Puter! Let's build something amazing together.",
{
provider: "gemini",
model: "gemini-2.5-flash-preview-tts",
voice: "Puck"
}
);
audio.play();
Style control with instructions
const audio = await puter.ai.txt2speech(
"Breaking news: Puter.js now supports Gemini TTS.",
{
provider: "gemini",
voice: "Charon",
instructions: "Speak in a friendly, upbeat tone."
}
);
audio.play();
Get Started Now
Just add one library to your project:
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
Or add one script tag to your HTML:
<script src="https://js.puter.com/v2/"></script>
No API keys and no infrastructure setup. Start building with Gemini TTS immediately.
Learn more:
Free, Serverless AI and Cloud
Start creating powerful web applications with Puter.js in seconds!
Get Started Now