Start building during your Thanksgiving break: lower prices, from $9 a month

Text-to-speech

Text-to-Speech in 50msthat nails the hard parts

Your agent starts talking before you finish blinking. Emails, phone numbers and acronyms come out right, in all languages, over a single streaming API.

Enter your text ....or

The numbers that make an agent sound human

No credit card required

#1 on Artificial Analysis, 74 ms to first audio

Artificial Analysis averages time to first audio across every request and prompt length. Of the 21 models it measures, Gradium starts speaking first.

Read benchmark

  • Gradium TTS74 ms
  • Inworld Realtime TTS-2 Flash86 ms
  • Fish Audio S2.1 Pro265 ms
  • Cartesia Sonic 3.6282 ms

No marketing spin,just code and hard numbers

Paste one of these prompts into coding agents, it'll install the SDK and open the stream.

Add Gradium streaming text-to-speech to this project.

Read https://docs.gradium.ai/guides/text-to-speech first and follow it over
anything you assume. Use the official Gradium SDK for this codebase's
language. Read the API key from an environment variable, never hardcode it.

Then implement the flow, in this order:

1. Open a tts_realtime session with a voice ID and an output format, as an
   async context manager. Do not open a new socket per utterance.
2. Run the sender and the receiver as concurrent tasks. The sender pushes
   text as it is produced and calls send_eos when the source is done.
3. In the receiver, play or buffer audio messages as they arrive and stop on
   end_of_stream. Do not wait for the full text before starting playback.
4. Split outgoing text on whitespace only. Never split a word across two
   send_text calls and never send punctuation on its own, because the server
   inserts a space between consecutive messages.

Keep it small: one module, typed, with clear errors when the socket drops
mid-stream, when the voice ID is unknown, or when the key is missing.
Do not add a UI unless I ask for one.

Concurrent send/receive for voice agents and LLM streaming.

No distortion under load

Latency stays flat as concurrency climbs, flexible deployment that fits your setup.

Real-time API

Bidirectional WebSocket streaming. Start sending before ready returns; first audio in 50 ms. Telephony formats built in.

[ 1 ]

in · pcm 24 kHz

CLIENT/AGENT

WEBSOCKET

Gradium API

wss://api.gradium.ai/
api/speech/s2s

BidirectionalTelephony ulaw / alaw50 ms

out · pcm 48 kHz

VOICE ENGINE

Predictable & secure

Flat latency under load, enterprise SLAs, zero data retention, ISO 27001 certified.

1 conversationQuiet hour

I’d like to move my appointment.

50ms

Of course. Which day works?

10 000 conversationsPeak

I’d like to move my appointment.

50ms

Of course. Which day works?

Runs where you need it

Cloud API, dedicated instances, self-hosted, on-prem for data sovereignty, and cloud-provider marketplaces.

Predictableand scalable pricing

Native fluencyacross languages

Every Gradium model speaks every language we support, with the same quality. Regional variations and accents included, with seamless mid-sentence code-switching without latency.

Questions ?We’re here to help

Startbuilding

No credit card required

[ 1 ] Aphrodite, Roman copy of a Greek sculpture by Praxiteles. Date: 2nd century. Material: marble. Dimensions: 50 × 34 × 24 cm. Current location: The Usher Gallery, Lincoln. 3D scan: Three D Scans.

[ 2 ] Antinoüs d’Écouen, after the antique. Date: 1700-1800. Material: marble. Dimensions: h. 84 cm. Held by the Musée du Louvre, Paris (not on display). Inventory number: MR 413. Photo: © Musée du Louvre, Dist. GrandPalaisRmn / Hervé Lewandowski.