Back to Prompt Library
implementation

Implement Real-time Voice I/O with ElevenLabs

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Build a Hyper-Personalized Voice Assistant Agent

Format
Text-first
Lines
1
Sections
1
Linked challenge
Build a Hyper-Personalized Voice Assistant Agent

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 checklist items
Integrate ElevenLabs for real-time Speech-to-Text (STT) and Text-to-Speech (TTS) capabilities. Create a TypeScript service that captures microphone input, streams it to ElevenLabs STT, passes the transcribed text to your Mastra AI agent, and then converts the agent's response back to speech using ElevenLabs TTS for playback. Focus on designing for low-latency streaming and robust audio handling.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Hold the task contract and output shape stable so generated implementations remain comparable.

Tune next

Update libraries, interfaces, and environment assumptions to match the stack you actually run.

Verify after

Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.