Google Gemini: Gemini 3.8 Flash TTS
Google Gemini 3.8 Flash TTS (GA): flagship creative text-to-speech engineered for studio-grade voice fidelity, expressive acting, authentic regional accents and long-form multi-turn stability, with 30 prebuilt voices, an Extended Voice Library, voice design and voice replication.
Streaming: PCM · µ-law · A-law
Providers
Different providers can host the same model. Choose one provider when you need a fixed backend, or let routing select among them.
Supported languages
ace-Arab
af
ak
am
hy
as
awa
ban
bn
bjn-Arab
bjn-Latn
ba
eu
be
bem
bho
bs
bug
bg
my
yue
ca
ceb
ckb
hne
zh-Hans
zh-Hant
crh
hr
cs
da
nl
dyu
dz
arz
en
et
fil
fi
fr
gl
lg
ka
de
el
gn
gu
ht
khk
ha
he
hi
hu
is
ig
ilo
id
pes
it
ja
jv
kab
kam
kn
ks-Arab
ks-Deva
kk
km
ki
rw
kg
ko
ky
lo
ltg
ln
lt
lb
mk
mag
mai
ml
mt
mni
mr
min-Arab
min-Latn
lus
npi
fuv
azj
nso
uzn
nb
nn
ny
oc
ory
pag
prs
pl
pt
pa
ro
ru
sat
sr
sd
si
sk
sl
so
azb
pbt
st
es
arb-Arab
arb-Latn
lvs
zsm
swh
ss
sv
tg
ta
te
th
ti
als
ug
Voices
Features
Generates spoken audio from a verbatim text transcript via the Interactions API (POST /v1beta/interactions, response_format.type 'audio') or generateContent (speech_metadata per part).
text_to_speech
One-shot synthesis returns the whole clip (WAV by default) in a single response.
synchronous
stream: true on the Interactions API returns SSE step.delta audio chunks (headerless 24 kHz PCM by default) as they are synthesized.
streaming
Supports 130 documented languages; the model auto-detects the input language (voices are language-agnostic).
multilingual
Multi-speaker dialogue with up to 2 prebuilt-voice speakers per request (speech_config.speakers + per-turn speech_metadata.speaker; mode 'conversational').
multi_speaker
Turn-level delivery (emotion, pace, volume, accent) via speech_metadata.style, point-in-time vocal events via inline angle-bracket tags, and inline IPA pronunciation overrides.
style_control
Custom vocal persona generated from a natural-language description (POST /v1beta/voices type='prompted'), returning a persistent voice_... id; 200 stored voices per project, 1-year TTL.
voice_design
Replicates a speaker from reference plus consent audio (POST /v1beta/voices type='replicated') as a persistent voice_... id or a stateless 7-day voicekey_... .
voice_cloning
Code
ElevenLabs SDK streaming TTS
Routes the ElevenLabs SDK through allmodels and streams the audio response.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "gemini/gemini-3-8-flash-tts",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"gemini"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
