Speech-to-Speech

Active
GitHub Python Apache-2.0

Description

Build local voice agents with open-source models. An end-to-end speech-to-speech pipeline from HuggingFace for fully local voice AI agent deployment.

Key Features

  • Fully open modular speech-to-speech pipeline: VAD → STT → LLM → TTS
  • Multiple STT backends: Whisper, Parakeet TDT (sub-100ms), Lightning Whisper MLX
  • Flexible LLM integration: HuggingFace Transformers, mlx-lm, OpenAI API
  • Multiple TTS engines: ChatTTS, Pocket TTS (voice cloning), Kokoro-82M, Qwen3-TTS
  • Four deployment modes: Realtime WebSocket, Server/Client, WebSocket, and Local
  • Optimized Apple Silicon support with MLX acceleration for all pipeline stages

Use Cases

💡 Building local voice AI agents without cloud dependencies
💡 Real-time conversational AI with low-latency speech processing
💡 Custom voice agent development with swappable model components
💡 Privacy-sensitive voice applications with fully offline deployment
💡 Prototyping speech-to-speech systems with rapid model experimentation

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (13.0k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (2 years in production)

Quick Start

Install: pip install speech-to-speech. Run: speech-to-speech (defaults to Parakeet TDT + OpenAI LLM + Qwen3-TTS). For local Mac: speech-to-speech --local_mac_optimal_settings. Optional backends: pip install "speech-to-speech[kokoro]". Set OPENAI_API_KEY for cloud LLM.

Related Projects

Vision Agents

8.1k · Python
Active A+

Open Vision Agents by Stream. Build voice and vision agents quickly with any model or video provider, using Stream's edge network for ultra-low latency realtime interactions.

voiceagentpython +3
  • · Real-time video AI with YOLO, Roboflow integration combined with Gemini/OpenAI for live visual understanding
  • · Ultra-low latency audio/video under 30ms via Stream's edge network with 500ms join time
  • · Native SDK methods from OpenAI, Gemini, and Claude for always-latest LLM capabilities

LangExtract

38.5k · Python
Active A+

A Python library by Google for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization, designed for data annotation and knowledge extraction workflows.

data-processingllmpython +2
  • · Precise source grounding — Every extraction maps to exact source text location with visual highlighting for traceability and verification
  • · Controlled structured outputs — Few-shot example enforced output schema, leveraging Gemini controlled generation for robust results
  • · Long document optimization — Text chunking, parallel processing, and multi-pass strategy to overcome needle-in-a-haystack challenges

GPT4All

77.4k · C++
Stale B

Run Local LLMs on Any Device. Open-source and available for commercial use. Provides fully offline local inference and chat for AI agents.

pythonllmagent +3
  • · Fully offline local inference - No API calls or GPU required, run LLMs privately on everyday laptops and desktops
  • · Cross-platform desktop app - Native installers for Windows, macOS, and Linux, download and run immediately
  • · Python SDK integration - Wraps llama.cpp via gpt4all Python package, load models and inference in a few lines of code