Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Scenario
Enhance Mavera Speak sessions by assigning custom ElevenLabs voices to different personas. Each persona gets a unique voice, creating an immersive multi-voice audio experience. Flow: MaveraGET /personas → Match to ElevenLabs voices → POST /mave/chat (in-character) → ElevenLabs TTS per persona → Multi-voice audio
Code
Example Output
Error Handling
Voice ID mismatch
Voice ID mismatch
Pre-made IDs are stable but can change. Verify with
GET /voices before starting. If a mapped voice is missing, fall back to the next in the pool.More personas than voices
More personas than voices
Voices repeat via modulo if personas exceed the pool. Expand by fetching all voices from
GET /voices and selecting based on gender/accent metadata.Merging tracks
Merging tracks
Concatenate with ffmpeg:
ffmpeg -i "concat:track1.mp3|silence.mp3|track2.mp3" -c copy session.mp3. Generate gaps: ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t 1 silence.mp3.