Cartesia: Sonic 3.5
Previous-generation Sonic text-to-speech model, superseded by Sonic 3.6 (docs recommend Sonic 3.6); still active with a stable pinned snapshot.
Streaming: PCM · µ-law · A-law
Variant Models
These are native model IDs accepted by the author/provider for the same canonical model family.
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
en
Voices
Features
Generates spoken audio from text input.
text_to_speech
Low-latency streaming TTS over WebSocket; raw PCM output (pcm_f32le/pcm_s16le/pcm_mulaw/pcm_alaw).
streaming
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Supports 42 languages.
multilingual
Supports instant and professional voice clones.
voice_cloning
Speed (0.6-1.5) and emotion (neutral/calm/angry/content/sad) control; volume control on Sonic 3+.
speed_emotion_control
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: "cartesia/sonic-3-5",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"cartesia"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
