Cartesia sonic

From calesthio/generative-media-skills · View interactive version

Cartesia sonic is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Use Cartesia Sonic and related Cartesia voice APIs for production speech: text-to-speech, realtime WebSocket TTS, voice selection, instant and professional voice cloning, pronunciation/language/emotion controls, voice localization, voice changer, pricing/concurrency planning, privacy/security review

How to use this skill

Skill file

Cartesia Sonic production skill

Use this skill when a media-production agent is choosing, prompting, integrating, or reviewing Cartesia Sonic for speech output. Treat Sonic as a low-latency text-to-speech provider first; use adjacent Cartesia voice APIs only when the production need explicitly requires them.

All volatile facts below were checked against official Cartesia documentation or legal pages on 2026-07-10. Re-check before committing budgets, compliance claims, model IDs, pricing, concurrency, supported languages, or API behavior.

Provider boundary

Documented facts:

Production heuristics:

Capability map

Sonic text-to-speech

Documented facts:

Production heuristics:

Voices

Documented facts:

Production heuristics:

Voice localization

Documented facts:

Production heuristics:

Voice changer

Documented facts:

Production heuristics:

Endpoint selection

Documented facts:

Decision rule:

Failure modes:

Core request fields

Documented facts:

Production defaults:

{
  "model_id": "sonic-3.5",
  "voice": { "mode": "id", "id": "VOICE_ID_APPROVED_FOR_THIS_PROJECT" },
  "language": "en",
  "output_format": {
    "container": "wav",
    "encoding": "pcm_s16le",
    "sample_rate": 48000
  },
  "generation_config": {
    "speed": 1.0,
    "volume": 1.0
  }
}

Heuristics:

Transcript writing for Sonic

Documented facts:

Production heuristics:

Pronunciation, language, and accent control

Documented facts:

Production heuristics:

Speed, volume, emotion, and nonverbal performance

Documented facts:

Production heuristics:

Pricing, quotas, and throughput planning

Documented facts:

Cost heuristic:

Privacy, security, rights, and disclosure

Documented facts:

Production requirements:

Artifact custody

For every generated or transformed audio asset, store:

Do not store raw voice-clone source recordings in a project folder unless the production contract explicitly allows it. Prefer a controlled asset store with access logs and deletion policy.

Production QA

Listen to every approved take; waveform inspection is not enough.

Check:

Common repair actions:

Complete examples

Example: batch narration for a 90-second product explainer

Production intent: create edit-ready scene narration files for a product video.

Workflow:

  1. Finalize script by scene. Keep each line as a complete sentence with terminal punctuation.
  2. Audition 3 stock voices in the target language with the first 2 scenes.
  3. Choose POST /tts/bytes because the transcript is complete and the output will be edited as files.
  4. Generate one WAV per scene at 48 kHz.
  5. Store model, voice, language, output format, transcript checksum, and request ID in the asset manifest.
  6. QA every line against the final script.

Example request body:

{
  "model_id": "sonic-3.5",
  "transcript": "Meet Acme Lens, the field camera that tags every inspection before your team leaves the site.",
  "voice": { "mode": "id", "id": "APPROVED_STOCK_VOICE_ID" },
  "language": "en",
  "output_format": {
    "container": "wav",
    "encoding": "pcm_s16le",
    "sample_rate": 48000
  },
  "generation_config": {
    "speed": 0.96,
    "volume": 1.0,
    "emotion": "confident"
  }
}

Expected result: one clean narration file with natural product-announcement pacing and no markdown or spoken production notes.

Failure modes:

Variations:

Example: realtime LLM voice agent

Production intent: speak assistant responses as the LLM streams tokens.

Workflow:

  1. Configure the LLM to output plain speakable prose with no markdown, no bullets, no emoji, and terminal punctuation.
  2. Open one Cartesia WebSocket per worker/session pool.
  3. For each assistant turn, create one context_id.
  4. Send chunks with continue: true; finalize the turn with continue: false.
  5. Keep voice/model/language/output settings identical within the context.
  6. Close idle sockets or recycle after idle periods.

Example chunk sequence:

{
  "model_id": "sonic-3.5",
  "transcript": "I found three available appointment times: ",
  "voice": { "mode": "id", "id": "APPROVED_AGENT_VOICE_ID" },
  "language": "en",
  "context_id": "turn-8472",
  "continue": true,
  "output_format": {
    "container": "raw",
    "encoding": "pcm_f32le",
    "sample_rate": 44100
  }
}
{
  "transcript": "Monday at 9:30 AM, Tuesday at 2:00 PM, or Thursday at 11:15 AM.",
  "context_id": "turn-8472",
  "continue": false
}

Expected result: one seamless utterance with stable prosody across the two chunks.

Failure modes:

Variations:

Example: localization with brand voice

Production intent: localize an English product ad into Spanish and Japanese using the same approved speaker identity.

Workflow:

  1. Confirm the talent agreement covers cloned/localized voice use in Spanish and Japanese, paid media, regions, and campaign term.
  2. Localize or select voices for each target language. Do not assume the English voice is native in each language.
  3. Translate/adapt the script for each market and re-time to the edit.
  4. Create pronunciation entries for product names and region-specific words.
  5. Generate takes with language: "es" and language: "ja" using POST /tts/bytes or SSE if caption timing is required.
  6. Native reviewers score pronunciation, accent, emotional fit, and compliance.

Expected result: language-specific files that preserve the brand identity while sounding natural to native listeners.

Failure modes:

Variations:

Example: voice changer for a performed line

Production intent: preserve an actor's comic timing but convert the voice to an approved character voice.

Workflow:

  1. Confirm rights to the source performance and target voice.
  2. Clean the source clip: one speaker, no background music, no overlapping speech, no clipping.
  3. Use POST /voice-changer/bytes with the target voice[id] and a production output format.
  4. Compare output to the source clip for timing and intonation retention.
  5. Mix in post; do not use volume controls as the final loudness process.

Expected result: same line timing and intonation in the target voice.

Failure modes:

Variations:

Source anchors verified 2026-07-10

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.