CookbooksMYLO Cookbooks
Launch an Agent with Your Cloned Voice
Clone a custom voice with Sonus and give your MYLO agent your own sound.
- Clone a voice with
POST /v1/audio/cloneand save thevoice_id - Pass the cloned
voice_idinto a MYLO session - Test quality over WebSocket and fall back to presets if needed Time to complete: ~20 minutes
Prerequisites
SAGEA_API_KEYexported in your shell asBearerauth- Python 3.10+ with
requestsandwebsocket-clientinstalled - A clean 1 to 2 minute WAV sample with consent to clone
- Complete Send your first API request
- Read the MYLO overview import from '@/components/Tabs';
Step 1: Clone your voice with Sonus
Upload a sample to Sonus and capture the returned voice_id.
Use a quiet recording with varied sentences for the most natural clone.
Step 2: Start a MYLO session with the cloned voice
Pass the Sonus voice_id as voice when creating the session.
Swap back to presets nova or atlas anytime by changing voice.
Step 3: Test, fetch transcript, and clean up
Join the WebSocket, verify tone, then fetch transcript and delete.
If quality drops, re-clone with a longer sample or use nova temporarily.
Verify
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | Missing or invalid API key | Export valid SAGEA_API_KEY and retry |
404 session_not_found | Session expired during voice test | Create new session with same voice_id |
429 rate_limit_exceeded | Clone plus session burst throttled | Wait, then retry session create alone |
422 voice_not_found | Bad or deleted voice_id | Re-clone via Sonus, verify ID copy |
