Skip to main content

Scenario

Generate audio summaries of Focus Group results for executives who prefer listening over reading. Retrieve focus group data, synthesize findings with Mave Agent, then convert to an audio executive briefing. Flow: Mavera GET /focus-groups/{id}POST /mave/chat (synthesize) → ElevenLabs TTS → Audio briefing

Code

Example Output

Error Handling

Check fg.get("status") before processing. If still running, poll with 5-second intervals until completed. Incomplete data produces unreliable briefings.
ElevenLabs TTS accepts up to ~5,000 characters per request. For longer briefings, split at paragraph boundaries and make sequential TTS calls. Concatenate with ffmpeg -f concat -i list.txt -c copy briefing.mp3.
Use a calm, authoritative voice for executive briefings. ElevenLabs’ Rachel (21m00Tcm4TlvDq8ikWAM) works well. Stability 0.6+ and low style values produce professional narration.