Conçu pour les agents vocaux qui ne peuvent pas attendre 600ms

Cartesia : Sonic 3

cartesia/sonic-3
actif tts 2 fournisseurs
Playground

Cartesia Sonic 3 streaming TTS with high naturalness and fine-grained volume, speed and emotion control, older than Sonic 3.5 but still served for compatibility.

AuteurCartesia
Langues1 langues
VoixChargement...
Formats de réponseSynchrone : MP3 · WAV · PCM · µ-law · A-law
Streaming : PCM · µ-law · A-law
Statutactif

Fournisseurs

Plusieurs fournisseurs peuvent héberger le même modèle. Choisissez-en un lorsque vous avez besoin d’un backend fixe, ou laissez le routage choisir parmi eux.

FournisseurSlugPour 1k caractèresLatenceiPour le TTS, la latence correspond au délai jusqu’au premier octet audio. Pour le STT, elle correspond au délai jusqu’au premier token.ModesDisponibilité
Cartesia 7 paramètres
cartesia
$0,03738
—
Synchrone · Streaming
Together AI 5 paramètres
together
$0,065
—
Synchrone

Langues prises en charge

1 langues
English en

Voix

Fonctionnalités

Text to speech

Generates spoken audio from text input.

text_to_speech
Streaming

Low-latency streaming TTS over WebSocket; raw PCM output (pcm_f32le/pcm_s16le/pcm_mulaw/pcm_alaw).

streaming
Synchronous

Synthesizes speech from fully-submitted text in a single synchronous request.

synchronous
Multilingual

Supports 44 languages.

multilingual
Voice cloning

Supports instant and professional voice clones.

voice_cloning
Speed & emotion control

Speed (0.6-1.5) and emotion (neutral/calm/angry/content/sad) control; volume control on Sonic 3+.

speed_emotion_control

Code

Client
Mode
Langage

TTS en streaming avec l’ElevenLabs SDK

Fait passer l’ElevenLabs SDK par AllModels et diffuse la réponse audio en streaming.

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",
  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.
}