speech-to-speech v1.1.0
This release adds a native CPU text-to-speech backend, more speech, diarization
and voice-activity backends, per-session language selection, turn-latency
reporting, and YAML configuration. These notes cover changes since v1.0.0.
Highlights
-
Phonon: local streaming speech on CPU. Gradium's Phonon runs through the
Rust-backed ptts runtime, with no PyTorch, and streams 16 kHz audio with
interruption support:
pip install "speech-to-speech[phonon]"
speech-to-speech local --tts phonon
The default checkpoint, gradium/phonon-40m-en, is gated: accept its terms on
Hugging Face, then run hf auth login or set HF_TOKEN. Its weights are CC
BY-NC 4.0 (non-commercial); the Apache-2.0 gradium/phonon-31m-en is available
with --phonon_tts_model_name. Voices come from the checkpoint and the Phonon
voice catalog. In local, the arrow keys switch voices between replies.
-
More speech backends. New STT backends: Parakeet Unified, Nemotron
streaming (including Persian), SenseVoice, and Orukeet. New TTS backends:
KittenTTS on CPU, MiniMax, and streaming Drama-3. Pocket TTS supports its Farsi
v2 weights, and OmniVoice accepts per-language reference voices. Also new:
optional FireRed streaming VAD and Nemotron 3 speaker diarization for live
conversations. Speech-to-viseme output is available again on the Realtime
pipeline.
-
Language selection and detection. Realtime sessions can select a speech
language with session.audio.input.transcription.language, change it live, or
return to auto. With --detect_llm_output_language, TTS follows the
language of the assistant's reply.
-
Turn-latency reporting. response.done logs and response metadata break
each turn into VAD, Smart Turn, STT, LLM and TTS waits, with first-text and
first-audio timings for most built-in backends. The browser demo shows
server timings in its history.
-
Configuration and setup. Optional YAML configuration supports configured
startup (speech-to-speech serve -f config.yaml). --torch_num_threads sets
PyTorch CPU threads. local shows a clean conversation view by default. New
guides cover LiveKit Agents, a keyless You.com web search tool, and DGX Spark.
-
More reliable Realtime conversations. This release honors
create_response: false and preserves Responses reasoning context across tool
continuations. It accepts client call IDs without the call_ prefix and
limits generated function-call IDs to 32 characters. Speculative-turn ordering
is stricter, and microphone and output audio are resampled continuously
across chunks. WebRTC no
longer sends idle audio packets, and Silero VAD resets its state after each
segment.
Upgrading from v1.0.0
In your Python environment:
pip install --upgrade "speech-to-speech==1.1.0"
- Python 3.11 or newer is required. Python 3.10 support was removed; Python
3.13 and 3.14 are now supported.
- The default local LLM is now Qwen3.5-4B.
local and serve use
mlx-community/Qwen3.5-4B-4bit on Apple Silicon and Qwen/Qwen3.5-4B with
Transformers elsewhere. To keep the previous model, pass
--model_name mlx-community/Qwen3-4B-Instruct-2507-4bit or
--model_name Qwen/Qwen3-4B-Instruct-2507.
- Kokoro on macOS needs its extra. Its phonemizer dependencies are no longer
part of the base macOS installation. Install
speech-to-speech[kokoro] before using --tts kokoro.
local hides diagnostics by default. It shows only the conversation; add
--verbose for routine logs, tool details and Realtime events.
- New optional extras:
phonon, kitten, fireredvad, nemo, and
sensevoice. The webrtc extra now requires aiortc<1.16.
Compatibility and setup
- Installation smoke tests cover Python 3.11–3.14 on Linux and Apple Silicon.
- Realtime compatibility covers the documented core event set, not every
OpenAI Realtime API feature. See the
protocol reference.
- Phonon runs on CPU even when other components use a GPU. Its thread count
defaults to four; tune it with --phonon_tts_num_threads.
See the README for starting configurations and the
full changelog
for all changes and contributors.
详细ChangeLog
speech-to-speech v1.0.0
The first major release brings a single Realtime engine, explicit server and
microphone-client commands, more speech backends, and improved conversation
lifecycle handling. These notes cover changes since v0.2.12.
Highlights
- Three commands:
serve, talk, and local. Run the Realtime server,
connect the packaged microphone/speaker client, or start both in one terminal.
The client also supports local tool execution with --tool-module.
- More speech backends. Add Qwen3-ASR speech recognition, OpenAI-compatible
STT and TTS endpoints, stateful OpenAI Realtime transcription, experimental
vLLM Realtime transcription, and optional OmniVoice and Supertonic TTS.
- More reliable realtime conversations. Improve ordered text, audio, and
tool-call output; transcript and content-part events; interrupted responses;
remote-request cancellation; and session cleanup. The browser demo uses the
OpenAI Agents SDK, with integration tests for its WebSocket and WebRTC
transports against the implemented core Realtime event set.
- Updated Apple Silicon setup. Refresh the MLX dependencies and default to
the 4-bit mlx-community/Qwen3-4B-Instruct-2507-4bit LLM with 6-bit Qwen3-TTS.
The Mac preset supplies defaults while respecting explicit overrides.
- Clearer setup and diagnostics. The README provides local Mac, local
NVIDIA, and hosted-LLM starting configurations, a shared llama.cpp recipe,
offline setup guidance, and a speaker-feedback workaround. Full transcript
logging is now opt-in with --log_transcripts; operational logs omit
conversation text by default.
Upgrading from v0.2.12
In your Python environment:
pip install --upgrade "speech-to-speech==1.0.0"
Update scripts and service definitions to use the explicit commands:
| Previous invocation |
v1.0.0 invocation |
speech-to-speech |
speech-to-speech serve |
speech-to-speech --mode realtime |
speech-to-speech serve |
speech-to-speech --mode local |
speech-to-speech local |
speech-to-speech --local_mac_optimal_settings |
speech-to-speech local --mac-optimal-settings |
python scripts/listen_and_play_realtime.py --host 127.0.0.1 --port 8765 |
speech-to-speech talk --url ws://127.0.0.1:8765/v1/realtime |
The --mode realtime and --mode local forms still work temporarily with a
deprecation warning. Other mode values, including socket and raw-websocket,
have been removed. Migrate raw PCM clients to the Realtime WebSocket or WebRTC
API; the old raw transport flags are no longer accepted.
The --mac-optimal-settings preset no longer selects a command: use local
for microphone/speaker interaction or serve for a server. serve binds to
127.0.0.1 by default; set --host explicitly for network access. local
uses loopback only.
The default hosted LLM is now gpt-5.6-terra, with reasoning effort none.
Pin --model_name if your deployment depends on a particular model. Local
Mac users can likewise override the preset's model with --model_name.
The redundant facebook-mms, language-detection, and websocket installation
extras were removed; their dependencies are included in the standard package.
Install speech-to-speech[webrtc] for WebRTC, speech-to-speech[omnivoice] for
OmniVoice, or speech-to-speech[supertonic] for Supertonic. Known options for
inactive backends are accepted but ignored with a warning.
Compatibility and setup
- Python 3.10+ is supported; the installation smoke tests use Python 3.11 on
Linux and Apple Silicon. Check the README's CUDA wheel guidance for Linux.
- Realtime compatibility covers the documented core event set, not every
OpenAI Realtime API feature. See the
protocol reference.
--local_audio_block_mic_during_playback pauses microphone capture during
assistant playback to reduce speaker feedback. It disables spoken
interruptions during playback; it does not perform acoustic echo cancellation.
See the README for starting configurations and the
full changelog
for all changes and contributors.
详细ChangeLog
speech-to-speech 0.2.12 is the final planned release in the 0.2.x line before
the next round of larger changes. It brings smarter turn-taking, WebRTC support,
direct audio input for audio-capable LLMs, more complete OpenAI Realtime protocol
behavior, and a significantly improved browser demo.
Highlights
- Smarter endpointing with Smart Turn v3.2. Realtime mode now enables the
quantized CPU Smart Turn model by default to distinguish completed turns from
mid-thought pauses while speculative STT and LLM work continues. Use
--no_smart_turn to retain Silero-only endpointing. (#192)
- WebRTC transport for the OpenAI Realtime API. Install the new
webrtc
extra to use SDP negotiation at POST /v1/realtime/calls, RTP audio, and the
oai-events data channel alongside the existing WebSocket transport. Both
transports share the same pipeline pool, event dispatch, cancellation, and
interruption behavior. (#352)
- Direct audio input for audio-capable LLMs. Run with
--stt none, the
Chat Completions backend, and an explicitly selected audio-capable model to
send completed VAD audio directly to the model. Audio history, cancellation,
tool calls, usage accounting, and provider failures are handled transactionally.
(#298)
- Optional remote-LLM proxy.
--enable_llm_proxy exposes the configured
remote backend through the matching /v1/responses or
/v1/chat/completions path, with streaming passthrough and usage accounting.
The engine deliberately does not authenticate or throttle these routes, so
standalone deployments must keep them on a trusted network or behind an
authenticated gateway. (#368)
Realtime, demo, and backend improvements
- The browser demo can select microphone and speaker devices, start with a
configurable assistant greeting, forward signed-in Hugging Face identity for
session allocation, show user-turn lifecycle feedback, and replay the exact
captured user audio locally. (#376,
#389,
#390)
- Qwen3-TTS GGML users can select quantization, load local talker and codec GGUF
files, configure voice-reference caching, and reuse precomputed .spk and
.rvq references. (#403)
- Successful
session.update requests now receive the expected
session.updated event with the effective session configuration.
(#413,
#417,
#418)
- Language prompting now covers every language reported by the bundled STT
handlers, including the full default Parakeet TDT language set.
(#395)
- A new guide documents a local Gemma 4 12B Realtime setup on Apple Silicon,
including native-audio bypass, memory tuning, cancellation, barge-in, and
troubleshooting. (#422)
Reliability and security
- Session teardown now preserves drain sentinels, releases capacity after setup
failures, quarantines stuck pipeline units, reports them through /v1/pool,
and prevents stale teardown signals from releasing the wrong session.
(#358)
- Speculative turn tracking no longer resurrects untracked revisions after a
reset or LRU eviction, preventing reused turn IDs from suppressing responses.
(#391)
- Both MLX Audio Whisper and Lightning Whisper MLX now use the global MLX lock,
preventing Metal command-buffer crashes when STT overlaps other MLX work on
Apple Silicon. (#379,
#387)
- Optional handler imports no longer reconfigure the host application's root
logger, and setup/cleanup output now uses module loggers.
(#409)
- NLTK is upgraded to 3.10.0 to address CVE-2026-54293 / GHSA-p4gq-832x-fm9v.
(#400)
Breaking change
The raw PCM WebSocket mode is now named raw-websocket. Commands using
--mode websocket must change to --mode raw-websocket; the old value is no
longer accepted. Realtime mode is unchanged and still supports both WebSocket
and WebRTC transports. (#401)
Packaging notes
- Smart Turn adds
huggingface-hub and onnxruntime as standard dependencies.
- WebRTC support is available through
pip install "speech-to-speech[webrtc]".
- The Smart Turn model is downloaded from the Hugging Face Hub on first use
unless a local model path is supplied.
All merged changes
New contributors
Thank you to @dcolley, @Hotragn, @varunsahni18, @ztcools,
@salignatmoandal, and @hrqiang for their first contributions to the project.
Full changelog: v0.2.11...v0.2.12
详细ChangeLog