voice-ai-engine-development
БесплатноБез исполняемых скриптовНе проверенArchitecting real-time Voice AI agents.
от Dokhacgiakhoa★ 513 звёзд на GitHubОб этом скилле
Voice AI Engine Development
Goal: Build low-latency, conversational Voice AI agents capable of full-duplex communication.
1. The Voice Pipeline (Latency is King)
The total loop Latency (Voice-to-Ear) should be < 1000ms (Ideal < 500ms).
- Transport: WebRTC (preferred for browser) or WebSocket (server-server).
- VAD (Voice Activity Detection): Detect when user starts/stops speaking.
- Tools: Silero VAD, WebRTC VAD.
- STT (Speech-to-Text): Transcribe audio to text.
- Tools: Deepgram (fastest), Whisper (high accuracy but slower), AssemblyAI.
- LLM (Brain): Process text and generate response.
- Tools: Groq (Llama 3), GPT-4o, Claude 3.5 Sonnet.
- TTS (Text-to-Speech): Convert response to audio.
- Tools: ElevenLabs (Quality), Cartesia (Speed), OpenAI TTS.
2. Architecture Patterns
- Streaming Pipeline: DO NOT wait for full transcription or full generation. Stream everything.
- User Audio Stream -> VAD -> STT Stream -> LLM Stream -> TTS Stream -> Audio Output.
- Interruption Handling (Barge-in):
- If VAD detects user speech while AI is talking -> Immediately CUT text generation and audio playback. Clear buffers.
3. Implementation Stack
- Backend: Python (FastAPI) or Node.js. Python ecosystem is stronger for audio processing (numpy/scipy).
- Frameworks:
- Pipecat: Open source framework for building voice agents.
- LiveKit: WebRTC infrastructure for real-time audio/video.
- Twilio: For telephony integration.
4. Optimization Techniques
- Optimistic VAD: Tune VAD to be sensitive to start, but careful with "silence" timeout (usually 500ms-800ms) to detect end of turn.
- Prompt Engineering: Instruct LLM to be concise and conversational.
- System Prompt: "You are a helpful voice assistant. Keep responses short (1-2 sentences). Do not use markdown or emojis."
- Audio Formats: Use OPUS or PCM (16khz/24khz/48khz) for transmission. Avoid MP3 transcoding latency.
5. Debugging & Metrics
- WER (Word Error Rate): For STT accuracy.
- TTFT (Time to First Token): LLM speed.
- TTA (Time to Audio): The critical metric. Time from user silence to first AI sound.
Common Pitfalls:
- Echo cancellation issues (User hears themselves). Use WebRTC's built-in AEC.
- Hallucination in STT (Whisper transcribing silence).
- Race conditions during interruptions.
Установить voice-ai-engine-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл voice-ai-engine-development?
Architecting real-time Voice AI agents.
Как установить скилл voice-ai-engine-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл voice-ai-engine-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic