Speech To Speech chains open speech, language, and TTS models into a low-latency conversational agent on your machine. It exposes the OpenAI Realtime API over WebSocket and WebRTC without requiring cloud API keys by default.
Overview
The default stack wires Silero VAD, Parakeet TDT, Qwen3.5-4B, and Qwen3-TTS, and each stage can be swapped through CLI flags or JSON configuration. A single local command can start microphone capture, inference, and speaker playback for hands-free dialogue.
The serve command runs the realtime server; talk connects a packaged client; local combines both on loopback. Backends include in-process MLX on Apple Silicon, Transformers elsewhere, or remote OpenAI-compatible STT, LLM, and TTS endpoints including llama.cpp and vLLM deployments.
Clients implementing the Realtime event set can stream audio, update sessions, handle interruptions, and receive transcription and audio deltas. Optional diarization, tool modules, echo cancellation, and playback buffering address room noise and hardware quirks described in the guides.
Docker Compose can launch a llama.cpp Gemma server alongside the realtime service when the NVIDIA Container Toolkit is installed. The same pipeline reportedly backs production conversations on Reachy Mini robots.
Key features
- Swappable STT, LLM, and TTS stages
- OpenAI Realtime WebSocket and WebRTC
- Local, talk, and serve CLI modes
- Voice activity detection pipeline
- User speech interruption handling
- Optional speaker diarization
- MLX defaults on macOS
- Docker Compose stack example
Use cases
- Offline voice assistants
- Robot conversation backends
- Realtime API client development
- Local LLM plus speech UX
- Private meeting voice agents