FormingConfiganypublished fresh until

OpenAI Realtime API: how do I run a fully local voice agent behind it?

Summary Hugging Face's speech-to-speech (Apache-2.0, v1.1.0) chains voice activity detection, speech recognition, an LLM with tool calls and text-to-speech on your own machine. It serves the core OpenAI Realtime events over WebSocket and WebRTC, so an existing Realtime client can switch to it by changing one URL.

Not for phone voice bots; see pipecat-voice-agent-phone-web

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v1.0.0+wwfix.1Hugging Face speech-to-speech
How you use itA setting in your project
What it can doinstalls software · writes files · network · runs shell
What's inside
AConfig · v1.0.0+wwfix.1Hugging Face speech-to-speech
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside

What this thread does

speech-to-speech v1.1.0 serves a local voice pipeline through the core OpenAI Realtime events. Do first: use Python 3.11+ and check the v1.0-to-v1.1 setup changes below before starting speech-to-speech local.

What it is

speech-to-speech is Hugging Face's modular voice-agent pipeline, highlighted by @Sumanth_077 in August 2026. Four stages run in their own threads: Silero VAD finds where you start and stop talking, a speech recognizer transcribes, an LLM streams text and tool calls, and a TTS model speaks the reply. Every stage has swappable backends chosen with CLI flags. Version 1.0.0 was released on 6 September 2026; v1.1.0 followed on 24 October.

The server speaks the core OpenAI Realtime GA event set at ws://127.0.0.1:8765/v1/realtime, so a client written for OpenAI's Realtime API can point at your own machine instead. The authors test it with the official OpenAI Agents SDK.

Three starting setups (from the README)

SetupHardware to plan forWhat leaves your machine
Apple Silicon, fully local (Parakeet, Qwen3.5-4B 4-bit via MLX, Qwen3-TTS)16 GB or more unified memory; about 7.5 GB of weightsNothing after the first model download
NVIDIA GPU, fully local (LLM via Transformers)About 24 GB of VRAM for the unquantized 4B LLM and speech modelsNothing after the first model download
Local speech, hosted LLMAbout 8 GB free for the speech modelsTranscribed text and conversation history go to the LLM provider; audio stays local

You can also run the LLM in a separate llama.cpp or vLLM server for a quantized model.

When to use it

  • You want a voice interface without per-minute API fees or sending audio to a vendor.
  • You already have an OpenAI Realtime client and want a local or self-hosted fallback.
  • You want to experiment with different recognizers, LLMs and voices in one pipeline.

Alternatives

Caveats

  • Only the core Realtime event set is implemented; check the README's Realtime API section if your client relies on less common events.
  • On Linux the default Qwen3-TTS wheel targets CUDA 12.8 and glibc 2.39 (Ubuntu 24.04). Other setups need a matching wheel from the Hugging Face wheelhouse the README links, or the CPU fallback.
  • The memory figures are the authors' planning estimates, not measured minimums.
  • Use headphones, or pass --local_audio_block_mic_during_playback (which stops you interrupting the reply).
  • The voice models can clone voices; clone only voices you have consent to use.

Sources

Checked against primary sources: the huggingface/speech-to-speech README, releases and metadata (Apache-2.0; v1.0.0 published 6 September 2026): default pipeline Silero VAD, Parakeet TDT, Qwen3.5-4B and Qwen3-TTS, each stage in its own thread and swappable by CLI flags; the server listens at ws://127.0.0.1:8765/v1/realtime; core OpenAI Realtime events with the OpenAI Agents SDK tested; memory guidance of 16 GB unified memory on Apple Silicon and 24 GB VRAM on NVIDIA for the default LLM; about 8 GB of the budget for the speech pipeline in the llama.cpp setup; the hosted-LLM example sends transcribed text and conversation history to the provider while audio stays local; the CUDA 12.8 and glibc 2.39 note for the Linux Qwen3-TTS wheel; --local_audio_block_mic_during_playback; voice-cloning consent warning in the README. The correction above is the model name (the README says Qwen3.5-4B, not Qwen3-4B).

Not checked here: the X post by Sumanth_077, the "about 7.5 GB of weights" figure, the claim that the README labels its memory numbers as planning estimates, and the two related WhatWorks threads.

Upgrade from v1.0.0: the 24 October 2026 v1.1.0 release notes remove Python 3.10 support (3.11+ required), change the default local LLM to Qwen3.5-4B, require the kokoro extra for Kokoro on macOS, hide routine local diagnostics unless --verbose is supplied, and cap the WebRTC extra at aiortc<1.16. The release adds YAML startup configuration, speech-language selection and turn-latency reporting. Its optional CPU Phonon backend defaults to gated, non-commercial CC BY-NC 4.0 weights; the alternative gradium/phonon-31m-en checkpoint is Apache-2.0. These optional weights do not change the code licence or the default Qwen3-TTS setup above.

Upstream report: gorkadabo1, 30 October 2026, reproduced delayed follow-up turns after cancellation when an OpenAI-compatible HTTP LLM stream kept emitting SSE comments. As checked 2026-11-14, #775 was closed on 2026-11-10 by merged PR #813; a containing release is not established here. This used a synthetic local provider on main, not a production trial; it concerns HTTP LLM backends rather than every fully local setup.

Not for: phone voice bots; see pipecat-voice-agent-phone-web

checked 2026-11-03

Started from a post by @Sumanth_077, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Realtime API: how do I run a fully local voice agent behind it?
Summary: Hugging Face's speech-to-speech (Apache-2.0, v1.1.0) chains voice activity detection, speech recognition, an LLM with tool calls and text-to-speech on your own machine. It serves the core OpenAI Realtime events over WebSocket and WebRTC, so an existing Realtime client can switch to it by changing one URL.

## Options
- A · Hugging Face speech-to-speech · early, no verdict yet · installs software · writes files · network · runs shell
Copy for agent
get the whatworks thread local-voice-agent-openai-realtime-api and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread local-voice-agent-openai-realtime-api

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Hugging Face speech-to-speech

Hugging Face's Apache-2.0 voice-agent pipeline (VAD, speech recognition, LLM with tool calls, TTS) that runs locally and serves the core OpenAI Realtime API at ws://127.0.0.1:8765/v1/realtime. Defaults: Parakeet TDT and Qwen3-TTS; the LLM runs via MLX, Transformers, llama.cpp or any OpenAI-compatible API.

Format
Config
Source
github:huggingface/speech-to-speech
Pinned
v1.0.0+wwfix.1 · 16d7f98ff712
Content hash
16d7f98ff712fb08
Audit
scan warned
Can do
installs software · writes files · network · runs shell
Works with
any
Check
speech-to-speech 1.0.0 is installed in the project's .venv; The CLI runs
Author
@huggingface
Kudos
0
Are you @huggingface? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package hf-speech-to-speech-pipeline before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package hf-speech-to-speech-pipeline
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp