Implement Real-time Voice I/O with ElevenLabs

implementationChallenge

Prompt Content

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.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations