Skip to main content

Scenario

Clone a spokesperson’s voice using ElevenLabs’ voice cloning API, then generate audio versions of Mavera-generated content using that cloned voice — building a consistent audio identity across all content. Flow: ElevenLabs POST /voices/add → get voice_id → Mavera POST /generations → ElevenLabs POST /text-to-speech/{voice_id} → branded audio

Code

Example Output

Error Handling

Instant cloning accepts 1–25 samples. Provide at least 3 clean samples totaling 1–3 minutes with only the target speaker — no background music or multiple speakers.
Each plan has a monthly character quota (~500 chars per 100 words). A 401 with quota_exceeded means your allocation is exhausted — upgrade or wait for monthly reset.
If TTS returns 404 after cloning, the voice may still be processing. Wait 5–10 seconds and retry. Verify with GET /voices.