Anomaly Detection in Rotating Machinery Using Self-Supervised Learning
A university research presentation turned into a narrated video for academic sharing.
Voice: ElevenLabs Eleven v3 / George
A complete guide to speech generation in the Gemini API: using it in Google AI Studio, Python code examples, embedded Japanese audio samples, the free tier and pricing model, and how it compares with ElevenLabs and others — as of August 2026.
The speech generation feature of the Google Gemini API turns text into natural-sounding AI audio — and its standout trait is that you can direct the delivery itself with natural-language instructions like "cheerfully" or "in a whisper."
This guide walks you through everything you need to get started: using it in Google AI Studio, calling it from the API with code examples, hearing its actual Japanese quality with embedded samples, understanding the pricing model, and seeing how it differs from other engines. All descriptions of external services reflect the state as of this writing (August 2026).
Gemini speech generation is the text-to-speech (TTS) capability offered through the Gemini API and Google AI Studio. As of this writing, it is served by two dedicated TTS models — gemini-2.5-flash-preview-tts and gemini-2.5-pro-preview-tts — both in preview.
Compared with conventional TTS, four traits stand out.
Direct tone and emotion with plain-language instructions such as "cheerful and positive" or "calm and slow."
Choose from roughly 30 preset voices with distinct characters, including Zephyr, Kore, and Charon.
Multi-speaker mode generates two-voice dialogue — interview or podcast style — in a single request.
Supports more than 20 languages including Japanese and English, covering multilingual content needs.
These Models Are in Preview
The easiest entry point is Google AI Studio, which offers a browser-based Generate speech mode. As of this writing you can start for free with a Google account.
We recommend experimenting with a few voices and style instructions in AI Studio first to see what suits your script. The interface is updated from time to time, so follow the on-screen guidance if details differ.
To integrate speech generation into an app or workflow, use the Gemini API. Below is the basic pattern with Google's official Python SDK (google-genai): specify a dedicated TTS model and set response_modalities to AUDIO.
from google import genai
from google.genai import types
import wave
client = genai.Client(api_key="YOUR_API_KEY")
response = client.models.generate_content(
model="gemini-2.5-flash-preview-tts",
contents="明るくポジティブなトーンで読んでください: "
"こんにちは。本日は新機能の概要をご紹介します。",
config=types.GenerateContentConfig(
response_modalities=["AUDIO"],
speech_config=types.SpeechConfig(
voice_config=types.VoiceConfig(
prebuilt_voice_config=types.PrebuiltVoiceConfig(
voice_name="Kore"
)
)
),
),
)
data = response.candidates[0].content.parts[0].inline_data.data
with wave.open("output.wav", "wb") as f:
f.setnchannels(1)
f.setsampwidth(2)
f.setframerate(24000)
f.writeframes(data)SDKs and Parameters Change
What matters more than specs is the actual sound. The samples below were generated by Gemini TTS from the same sentence (a short service introduction) with the style instruction "cheerful and positive." No editing or post-processing was applied.
Our editorial impression: what makes Gemini interesting is how much the character shifts between voices even under the identical instruction. Since impressions vary with script and language, try the free sample comparison page — no sign-up required — to judge with your own ears across 7 languages and other engines.
As of this writing, you can start experimenting for free in Google AI Studio, and the Gemini API includes a free tier. For production use, the basic model is pay-as-you-go based on the amount of text processed and audio generated.
Because unit prices and free-tier limits are revised over time, we do not list figures here. Always check the current rates on the official Gemini API pricing page.
Gemini speech generation is distinguished by prompt-directed expressiveness. Here is a rough positioning against the major engines (as of this writing).
| Gemini | ElevenLabs | OpenAI | Google Cloud TTS | |
|---|---|---|---|---|
| Prompt-based style control | Yes | No | Yes | No |
| Approx. voice count | ~30 (multilingual) | Many (multilingual) | 11 (multilingual) | Many per language |
| Multi-speaker generation | Up to 2 speakers | — | — | — |
| Release stage | Preview | GA | GA | GA |
Note that within Google itself, Google Cloud Text-to-Speech (Neural2, Chirp3-HD, etc.) and Gemini TTS are separate product lines. For a detailed cross-engine comparison of voice quality, stability, and Japanese naturalness, see our AI voice quality comparison, and to hear the engines side by side, our four-engine listening comparison.
A practical, high-value use of Gemini voices is narrating presentation decks and training slides. Building it yourself, though, means scripting, generating audio per slide, and assembling everything in a video editor.
SpeechSlide AI automates that entire flow. It ships with four AI voice engines — ElevenLabs, Google, Gemini, and OpenAI — so you can simply select Gemini in your project's audio settings and export an MP4 video whose script, generated from your slides, is narrated by a Gemini voice.
No API keys or code required — upload your slides and everything from scripting to Gemini narration to video export happens in the browser.
A. As of this writing, flash is positioned for speed and cost efficiency while pro leans toward higher quality. Both are preview-stage TTS models, so try each for your use case and confirm the current positioning in the official documentation.
A. Usage rights for generated audio are governed by Google's terms of service, which can change. Before using it in a commercial project, always verify the current scope and conditions in the official terms.
A. There is a limit to how much text a single request can handle (the exact limit changes with model and API updates — see the official docs). For presentations and training content, generating audio per slide or per paragraph is more practical anyway, making tweaks and re-takes far easier.
A. Beyond overall direction like "cheerful" or "serious tone," it responds to instructions about pace and emotional emphasis to a reasonable degree. The effect varies by voice and script, so compare several voices under the same instruction before choosing.
For how to write narration scripts that sound natural, see our guide to creating AI narration.
With SpeechSlide AI, no API keys are needed — switch among four engines including Gemini voices and turn your slides into narrated videos.
Create a Video for FreeJust upload your slides to get a narrated presentation video like this one.
A university research presentation turned into a narrated video for academic sharing.
Voice: ElevenLabs Eleven v3 / George
Explore slide-to-video workflows across education, healthcare, training, sales, and creator use cases.
View Use CasesYes. The free plan lets you create up to 2 projects and 4 videos per month. No credit card required.
PDF and PowerPoint (PPT/PPTX) files are supported. Upload the slides you already have.
AI narration is available in Japanese, English, Chinese, Korean, German, Spanish, and more.
Yes. Videos can be used for training, sales, lectures, and marketing. Paid plans allow watermark-free MP4 downloads.
A four-axis comparison of major AI voice (TTS) engines — ElevenLabs, OpenAI, Google, and Gemini — covering naturalness, language support, control, and operational fit, with listening links so you can verify every claim.
A three-step guide to creating AI narration: script techniques that make it sound natural, cautions on commercial use and credit requirements, and four criteria for choosing a tool — with real audio samples embedded.