AIAny
AI Audio2024
Icon for item

Speech To Speech

Chains four swappable open modules — voice activity detection, speech-to-text, an LLM, and text-to-speech — into a local voice agent that needs no proprietary APIs. Runs on CUDA, Apple Silicon, or Docker, with an OpenAI-compatible realtime WebSocket mode.

Introduction

Most voice assistants that feel responsive quietly stream your audio to a cloud API. This project takes the opposite bet: a fully local cascade where every stage — detection, transcription, reasoning, synthesis — is an open model you choose and can swap, so latency, privacy, and language coverage become things you tune rather than rent.

How the Pipeline Fits Together
  • Four stages chained end to end: Silero VAD detects speech, an STT model (Whisper, Parakeet TDT, or Paraformer) transcribes it, an LLM reasons over it, and a TTS model (Kokoro-82M, ChatTTS, or Qwen3-TTS) speaks the reply. Because the boundaries are explicit, you can debug or upgrade any single stage.
  • Each component is independent: swap a heavy Whisper for a distilled variant, or point the LLM at a local Transformers/MLX model versus OpenAI, vLLM, OpenRouter, or llama.cpp — without touching the rest of the chain.
  • Three deployment shapes ship in the box: pure local mic/speaker, a server/client TCP setup, and an OpenAI-compatible /v1/realtime WebSocket endpoint, so clients already built for that protocol work unchanged.
  • It runs across CUDA, CPU, Apple Silicon (MPS), and Docker, and handles English, French, Spanish, Chinese, Japanese, and Korean with auto-detection plus live partial transcripts.
Who It's For

Great fit if you want a privacy-preserving or offline voice agent, need to benchmark different STT/LLM/TTS combinations, or want to self-host an endpoint that speaks the OpenAI realtime protocol. Look elsewhere if you need a polished turnkey product — this is a framework that expects you to assemble and tune the pieces, and a cascaded pipeline carries more latency than an end-to-end speech model.

Information

  • Websitegithub.com
  • AuthorsHugging Face
  • Published date2024/08/07

Categories

More Items

Hugging Face
AI Audio2026

Generates directed, multi-character, long-form speech from text with natural-language directions and voice cloning. Built on a 35B MoE backbone (3B active per token) with a codebook multi-token-prediction decoder to enable multi-turn revision, infilling edits, streaming, and expressive control.

GitHub
AI Audio2025

Generates full songs from lyrics and style prompts by first writing an editable melody-and-chord score and then rendering vocals and accompaniment. Unifies symbolic planning and audio synthesis in one pipeline, enabling readable score inspection, zero‑shot covers, and agent-driven editing.

Hugging Face
AI Audio2026

On-device speech-to-text for short clips (up to 30s) in seven languages, yielding transcripts, word-level timestamps and per-frame speech embeddings in a single 16.9 MB model. Runs on the Needle CPU engine with 2–4 bit quantization, supports keyword biasing and returns empty transcripts for silence.