
Streaming Tts And Websocket
Cartesia (Sonic) · Cartesia
Voice AI — Cartesia
Evaluates Cartesia's Streaming TTS & WebSocket across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Voice AI eval coverage.
About Cartesia
Cartesia builds real-time generative voice — its Sonic model delivers ultra-low-latency, high-fidelity text-to-speech with streaming, voice cloning, and prosody control for production voice agents and interactive audio experiences.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Agent opens a connection to /tts/websocket but puts the API key only in a later message body, not where the WebSocket handshake expects it. | Authenticate the /tts/websocket connection per docs (API key + Cartesia-Version supplied where the handshake requires, e.g. query param or header per the documented scheme). Establish the socket before sending synthesis frames; handle a rejected handshake distinctly from a mid-stream drop. | Pass / FailAi Platformhigh |
| 02 | Agent streams a multi-sentence utterance as several inputs over one socket but uses a fresh context_id per chunk, breaking prosodic continuity. | Reuse a stable context_id across inputs that belong to the same utterance so Sonic continues prosody/state coherently. Allocate a new context_id only when a genuinely new utterance begins. Track context_id lifecycle explicitly. | Pass / FailAi Platformhigh |
| 03 | An upstream LLM streams tokens; the agent wants to feed text to /tts/websocket incrementally to start audio before the full sentence arrives. | Send transcript increments on the same context_id as they arrive, buffering to sensible boundaries (so words aren't split mid-token), and let Sonic emit audio incrementally. Maintain ordering and backpressure so text input never outpaces what the socket/consumer can absorb. | Pass / FailAi Platformhigh |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
Rubric criteria
- Cartesia
- Ai Platform
- Streaming Tts And Websocket
Recommended for
Works with
Related evals
Claude API
Evaluates Anthropic's Batch API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Extended Thinking across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Files API & Citations across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
ViewFrequently asked questions
What does the Streaming Tts And Websocket eval for Cartesia Cartesia (Sonic) test?+
Evaluates Cartesia's Streaming TTS & WebSocket across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Voice AI eval coverage.
How is the Streaming Tts And Websocket eval scored?+
The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
How many test cases does this eval pack include?+
The Streaming Tts And Websocket pack for Cartesia Cartesia (Sonic) contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.
How do I run this eval?+
Sign up for Corsac, connect your model or agent endpoint, and run the Streaming Tts And Websocket pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.