[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72135":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},72135,"speech-to-speech","huggingface\u002Fspeech-to-speech","huggingface","Build local voice agents with open-source models","",null,"Python",4869,583,45,74,0,15,37,135,30.3,"Apache License 2.0",false,"main",[25,26,27,28,29,30,31,32,33],"ai","assistant","language-model","machine-learning","python","speech","speech-synthesis","speech-to-text","speech-translation","2026-06-12 02:02:59","\u003Cdiv align=\"center\">\n  \u003Cdiv>&nbsp;\u003C\u002Fdiv>\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fhuggingface\u002Fspeech-to-speech\u002Fmain\u002Flogo.png\" width=\"600\"\u002F>\n\u003C\u002Fdiv>\n\n# Speech To Speech: Build local voice agents with open-source models\n\n## 📖 Quick Index\n* [Approach](#approach)\n  - [Structure](#structure)\n  - [Modularity](#modularity)\n* [Setup](#setup)\n* [Usage](#usage)\n  - [Realtime approach](#realtime-approach)\n  - [Server\u002FClient approach](#serverclient-approach)\n  - [WebSocket approach](#websocket-approach)\n  - [Local approach](#local-approach-running-on-mac)\n  - [LLM Backend](#llm-backend)\n  - [Realtime mode](#realtime-mode)\n  - [Docker Server approach](#docker-server)\n* [Command-line usage](#command-line-usage)\n  - [Model parameters](#model-parameters)\n  - [Generation parameters](#generation-parameters)\n  - [Notable parameters](#notable-parameters)\n\n## Approach\n\n### Structure\nThis repository implements a speech-to-speech cascaded pipeline consisting of the following parts:\n1. **Voice Activity Detection (VAD)**\n2. **Speech to Text (STT)**\n3. **Language Model (LM)**\n4. **Text to Speech (TTS)**\n\n### Modularity\nThe pipeline provides a fully open and modular approach, with a focus on leveraging models available through the Transformers library on the Hugging Face hub. The code is designed for easy modification, and we already support device-specific and external library implementations:\n\n**VAD** \n- [Silero VAD v5](https:\u002F\u002Fgithub.com\u002Fsnakers4\u002Fsilero-vad)\n\n**STT**\n- Any [Whisper](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Ftransformers\u002Fen\u002Fmodel_doc\u002Fwhisper) model checkpoint on the Hugging Face Hub through Transformers 🤗, including [whisper-large-v3](https:\u002F\u002Fhuggingface.co\u002Fopenai\u002Fwhisper-large-v3) and [distil-large-v3](https:\u002F\u002Fhuggingface.co\u002Fdistil-whisper\u002Fdistil-large-v3)\n- [Lightning Whisper MLX](https:\u002F\u002Fgithub.com\u002Fmustafaaljadery\u002Flightning-whisper-mlx?tab=readme-ov-file#lightning-whisper-mlx)\n- [MLX Audio Whisper](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fmlx-audio) - Fast Whisper inference on Apple Silicon\n- [Parakeet TDT](https:\u002F\u002Fhuggingface.co\u002Fnvidia\u002Fparakeet-tdt-1.1b) - Real-time streaming STT with sub-100ms latency on Apple Silicon (CUDA\u002FCPU via nano-parakeet, no NeMo)\n- [Paraformer - FunASR](https:\u002F\u002Fgithub.com\u002Fmodelscope\u002FFunASR)\n\n**LLM**\n- Any instruction-following model on the [Hugging Face Hub](https:\u002F\u002Fhuggingface.co\u002Fmodels?pipeline_tag=text-generation&sort=trending) via Transformers 🤗\n- [mlx-lm](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx-examples\u002Fblob\u002Fmain\u002Fllms\u002FREADME.md)\n- [OpenAI API](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fquickstart)\n\n**TTS**\n- [ChatTTS](https:\u002F\u002Fgithub.com\u002F2noise\u002FChatTTS?tab=readme-ov-file)\n- [Pocket TTS](https:\u002F\u002Fgithub.com\u002Fkyutai-labs\u002Fpocket-tts) - Streaming TTS with voice cloning from Kyutai Labs\n- [Kokoro-82M](https:\u002F\u002Fhuggingface.co\u002Fhexgrad\u002FKokoro-82M) - Fast and high-quality TTS optimized for Apple Silicon\n- [Qwen3-TTS](https:\u002F\u002Fhuggingface.co\u002FQwen\u002FQwen3-TTS-12Hz-1.7B-CustomVoice)\n\n## Setup\n\nInstall the default package from PyPI:\n```bash\npip install speech-to-speech\n```\n\nThe default install is scoped to the standard realtime voice-agent path:\n- Parakeet TDT for STT\n- OpenAI-compatible API for the language model\n- Qwen3-TTS for speech output\n- local audio and realtime server modes\n\nOptional backends are installed with extras:\n```bash\npip install \"speech-to-speech[kokoro]\"\npip install \"speech-to-speech[pocket]\"\npip install \"speech-to-speech[faster-whisper]\"\npip install \"speech-to-speech[paraformer]\"\npip install \"speech-to-speech[mlx-lm]\"\npip install \"speech-to-speech[websocket]\"\n```\n\nDeprecated model implementations, including MeloTTS, live in [`archive\u002F`](.\u002Farchive) and are no longer wired into the CLI.\n\nFor development from source:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fspeech-to-speech.git\ncd speech-to-speech\nuv sync\n```\n\nThis installs the `speech_to_speech` package in editable mode and makes the `speech-to-speech` CLI command available. The project uses a single `pyproject.toml` with platform markers, so macOS and non-macOS dependencies are resolved automatically from one file.\n\n**Note on DeepFilterNet:** DeepFilterNet (used for optional audio enhancement in VAD) requires `numpy\u003C2` and conflicts with Pocket TTS, which requires `numpy>=2`. Install DeepFilterNet manually only in environments where you are not using Pocket TTS.\n\n\n## Usage\n\nThe default CLI is equivalent to a realtime Parakeet + OpenAI-compatible LLM + Qwen3-TTS setup. It uses `OPENAI_API_KEY` from the environment unless `--responses_api_api_key` is provided:\n```bash\nspeech-to-speech\n```\n\nThe pipeline can be run in four ways:\n- **Realtime approach**: Models run locally or on a server, and an OpenAI Realtime-compatible WebSocket API is exposed for another app.\n- **Server\u002FClient approach**: Models run on a server, and audio input\u002Foutput are streamed from a client using TCP sockets.\n- **WebSocket approach**: Models run on a server, and audio input\u002Foutput are streamed from a client using WebSockets.\n- **Local approach**: Runs locally.\n\n### Recommended setup \n\n### Realtime Approach\n\nThe default realtime setup uses `--llm_backend responses-api`, which works with any provider supporting the OpenAI Responses API protocol. Export `OPENAI_API_KEY` with your provider's key before launching, or pass it explicitly with `--responses_api_api_key`. For a non-OpenAI provider, also set `--responses_api_base_url`.\n\n```bash\nexport OPENAI_API_KEY=...\n```\n\nThe default mode starts the OpenAI Realtime-compatible server:\n```bash\nspeech-to-speech\n```\n\nThis is equivalent to:\n```bash\nspeech-to-speech \\\n    --thresh 0.6 \\\n    --stt parakeet-tdt \\\n    --llm_backend responses-api \\\n    --tts qwen3 \\\n    --qwen3_tts_model_name Qwen\u002FQwen3-TTS-12Hz-1.7B-CustomVoice \\\n    --qwen3_tts_speaker Aiden \\\n    --qwen3_tts_language auto \\\n    --qwen3_tts_non_streaming_mode True \\\n    --qwen3_tts_mlx_quantization 6bit \\\n    --model_name gpt-5.4-mini \\\n    --chat_size 30 \\\n    --responses_api_stream \\\n    --enable_live_transcription \\\n    --mode realtime\n```\n\n### Server\u002FClient Approach\n\n1. Run the pipeline on the server:\n   ```bash\n   speech-to-speech --recv_host 0.0.0.0 --send_host 0.0.0.0\n   ```\n\n2. Run the client locally to handle microphone input and receive generated audio:\n   ```bash\n   python scripts\u002Flisten_and_play.py --host \u003CIP address of your server>\n   ```\n\n### WebSocket Approach\n\n1. Run the pipeline with WebSocket mode:\n   ```bash\n   speech-to-speech --mode websocket --ws_host 0.0.0.0 --ws_port 8765\n   ```\n\n2. Connect to the WebSocket server from your client application at `ws:\u002F\u002F\u003Cserver-ip>:8765`. The server handles bidirectional audio streaming:\n   - Send raw audio bytes to the server (16kHz, int16, mono)\n   - Receive generated audio bytes from the server\n\n### Local Approach (Mac)\n\n1. For optimal settings on Mac:\n   ```bash\n   speech-to-speech --local_mac_optimal_settings\n   ```\n\n   You can also specify a particular LLM model:\n   ```bash\n   speech-to-speech \\\n       --local_mac_optimal_settings \\\n       --model_name mlx-community\u002FQwen3-4B-Instruct-2507-bf16\n   ```\n\nThis setting:\n   - Adds `--device mps` to use MPS for all models.\n   - Sets [Parakeet TDT](https:\u002F\u002Fhuggingface.co\u002Fnvidia\u002Fparakeet-tdt-1.1b) for STT (fast streaming ASR on Apple Silicon)\n   - Sets MLX LM as the LLM backend\n   - Sets Qwen3-TTS for TTS\n   - `--tts pocket` and `--tts kokoro` are also valid TTS options on macOS.\n   - Qwen3 on Apple Silicon uses `mlx-audio` and defaults to the `6bit` MLX variant unless you explicitly select a different quantization or model suffix.\n   - To compare the MLX variants locally, run:\n     ```bash\n     python scripts\u002Fbenchmark_tts.py \\\n         --handlers qwen3 \\\n         --iterations 3 \\\n         --qwen3_mlx_quantizations bf16 4bit 6bit 8bit\n     ```\n\n\n### Realtime mode\n\nRealtime mode (`--mode realtime`) streams audio over a WebSocket using the OpenAI Realtime protocol, with live transcription and low-latency turn-taking. The server exposes a WebSocket endpoint at `\u002Fv1\u002Frealtime` that any OpenAI Realtime-compatible client can connect to.\n\n#### Connecting with the OpenAI Realtime client\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http:\u002F\u002Flocalhost:8765\u002Fv1\", api_key=\"not-needed\")\n\nwith client.beta.realtime.connect(model=\"model_name\") as conn:\n    conn.session.update(\n      session={\n        \"instructions\": \"You are a helpful assistant.\",\n        \"turn_detection\": {\"type\": \"server_vad\", \"interrupt_response\": True},\n      }\n    )\n\n    # send audio, receive events, etc.\n    for event in conn:\n        print(event.type)\n```\n\n#### Supported events\n\n**Client -> Server**\n\n| Event | Description |\n|---|---|\n| `input_audio_buffer.append` | Stream base64 PCM audio. Decoded, resampled to 16 kHz, and chunked for the VAD. |\n| `session.update` | Deep-merge session config (instructions, tools, voice, turn detection, audio format). |\n| `conversation.item.create` | Inject `input_text` or `function_call_output` into the LLM context without triggering generation. |\n| `response.create` | Trigger LLM generation. Supports per-response `instructions` and `tool_choice` overrides. |\n| `response.cancel` | Cancel the in-progress response and re-enable listening. |\n\n**Server -> Client**\n\n| Event | Description |\n|---|---|\n| `session.created` | Sent on connection with current session config. |\n| `error` | Protocol errors (`session_limit_reached`, `unknown_or_invalid_event`, `invalid_session_type`, `conversation_already_has_active_response`, etc.) |\n| `input_audio_buffer.speech_started` | VAD detected user speech. |\n| `input_audio_buffer.speech_stopped` | End of user speech segment. |\n| `conversation.item.created` | Acknowledges injected `input_text` from `conversation.item.create`. |\n| `conversation.item.input_audio_transcription.delta` | Streaming partial transcript (when live transcription is enabled). |\n| `conversation.item.input_audio_transcription.completed` | Final transcript for the user turn (with duration usage). |\n| `response.created` | Emitted on the first outbound audio chunk (response is `in_progress`). |\n| `response.output_audio.delta` | Base64 PCM audio chunk from TTS. |\n| `response.output_audio.done` | Audio stream complete for the current output item. |\n| `response.output_audio_transcript.done` | Full assistant text transcript for the turn. |\n| `response.function_call_arguments.done` | Tool call with `call_id`, `name`, and JSON `arguments`. |\n| `response.done` | Response finished (`completed`, `cancelled` with reason `turn_detected` or `client_cancelled`). |\n\nFor the full architecture and design details, see the [Realtime Engine README](.\u002Fsrc\u002Fspeech_to_speech\u002Fapi\u002Fopenai_realtime\u002FREADME.md).\n\n### LLM Backend\n\nThe LLM is the most compute-intensive and highest-latency component in the pipeline. A single forward pass through a large model can easily dominate the end-to-end response time, so choosing the right backend for your hardware and latency budget matters. To give users the most flexibility, we support the full spectrum of inference solutions:\n\n- **Local inference** — `transformers` (CUDA \u002F CPU) and `mlx-lm` (Apple Silicon) run the model entirely on your machine with no external dependency.\n- **Self-hosted servers** — `--llm_backend responses-api` can point at a local [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) or [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggerganov\u002Fllama.cpp) server, giving you control over quantization, batching, and hardware while keeping traffic on-premise.\n- **Provider APIs** — the same `responses-api` backend works with OpenAI, [HuggingFace Inference Providers](https:\u002F\u002Fhuggingface.co\u002Finference-providers), [OpenRouter](https:\u002F\u002Fopenrouter.ai), and any other provider that implements the OpenAI Responses API.\n\nSelect a backend with `--llm_backend` (`responses-api` by default) and pair it with `--model_name`. Backend-specific options (`--responses_api_base_url`, `--responses_api_api_key`, `--responses_api_stream`, etc.) are only needed for the `responses-api` backend.\n\n> The examples below pair Parakeet TDT (local STT) and Qwen3-TTS (local TTS) with different LLM backends.\n\n#### OpenAI-compatible backends (`--llm_backend responses-api`)\n\n`--llm_backend responses-api` works with any server that implements the OpenAI Chat Completions API — point `--responses_api_base_url` at the right endpoint and set `--model_name` accordingly:\n\n| Backend | `--responses_api_base_url` | `--responses_api_api_key` |\n|---|---|---|\n| OpenAI | *(omit, uses OpenAI default)* | `$OPENAI_API_KEY` |\n| HF Inference Providers | `https:\u002F\u002Frouter.huggingface.co\u002Fv1` | `$HF_TOKEN` |\n| OpenRouter | `https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1` | `$OPENROUTER_API_KEY` |\n| vLLM (local) | `http:\u002F\u002Flocalhost:8000\u002Fv1` | *(omit or any string)* |\n| llama.cpp (local) | `http:\u002F\u002Flocalhost:8080\u002Fv1` | *(omit or any string)* |\n\n```bash\n# OpenAI\nspeech-to-speech \\\n    --mode local \\\n    --stt parakeet-tdt \\\n    --llm_backend responses-api \\\n    --tts qwen3 \\\n    --qwen3_tts_mlx_quantization 6bit \\\n    --model_name \"gpt-4o-mini\" \\\n    --responses_api_api_key \"$OPENAI_API_KEY\" \\\n    --responses_api_stream \\\n    --enable_live_transcription\n```\n\n```bash\n# HF Inference Providers — Qwen3.5-9B via Together\nspeech-to-speech \\\n    --mode local \\\n    --stt parakeet-tdt \\\n    --llm_backend responses-api \\\n    --tts qwen3 \\\n    --qwen3_tts_mlx_quantization 6bit \\\n    --model_name \"Qwen\u002FQwen3.5-9B:together\" \\\n    --responses_api_base_url \"https:\u002F\u002Frouter.huggingface.co\u002Fv1\" \\\n    --responses_api_api_key \"$HF_TOKEN\" \\\n    --responses_api_stream \\\n    --enable_live_transcription\n```\n\n```bash\n# HF Inference Providers — GPT-oss-20B via Groq\nspeech-to-speech \\\n    --stt parakeet-tdt \\\n    --llm_backend responses-api \\\n    --tts qwen3 \\\n    --qwen3_tts_mlx_quantization 6bit \\\n    --model_name \"openai\u002Fgpt-oss-20b:groq\" \\\n    --responses_api_base_url \"https:\u002F\u002Frouter.huggingface.co\u002Fv1\" \\\n    --responses_api_api_key \"$HF_TOKEN\" \\\n    --responses_api_stream \\\n    --enable_live_transcription\n```\n\n#### Fully local (Apple Silicon)\n\n```bash\n# MLX backend (Apple Silicon)\nspeech-to-speech \\\n    --mode local \\\n    --stt parakeet-tdt \\\n    --llm_backend mlx-lm \\\n    --tts qwen3 \\\n    --qwen3_tts_mlx_quantization 6bit \\\n    --model_name \"mlx-community\u002FQwen3-4B-Instruct-2507-bf16\" \\\n    --enable_live_transcription\n```\n\n```bash\n# Transformers backend\nspeech-to-speech \\\n    --mode local \\\n    --stt parakeet-tdt \\\n    --llm_backend transformers \\\n    --tts qwen3 \\\n    --model_name \"Qwen\u002FQwen3-4B-Instruct-2507\" \\\n    --enable_live_transcription\n```\n\n### Docker Server\n\n#### Install the NVIDIA Container Toolkit\n\nhttps:\u002F\u002Fdocs.nvidia.com\u002Fdatacenter\u002Fcloud-native\u002Fcontainer-toolkit\u002Flatest\u002Finstall-guide.html\n\n#### Start the docker container\n```docker compose up```\n\n\n\n### Recommended usage with Cuda\n\nLeverage Torch Compile for Whisper with Pocket TTS for a simple low-latency setup:\n\n```bash\nspeech-to-speech \\\n    --stt parakeet-tdt \\\n    --llm_backend transformers \\\n    --tts qwen3 \\\n    --model_name \"Qwen\u002FQwen3-4B-Instruct-2507\" \\\n    --enable_live_transcription\n```\n\n### Multi-language Support\n\nThe pipeline currently supports English, French, Spanish, Chinese, Japanese, and Korean.  \nTwo use cases are considered:\n\n- **Single-language conversation**: Enforce the language setting using the `--language` flag, specifying the target language code (default is 'en').\n- **Language switching**: Set `--language` to 'auto'. The STT detects the language of each spoken prompt and forwards it to the LLM. Optionally, opt in with `--enable_lang_prompt` to also append a \"`Please reply to my message in ...`\" instruction so the LLM replies in the detected language. This flag defaults to `False` — large LLMs usually pick up the language from context on their own, but the explicit instruction can help smaller models stay in the right language.\n\nPlease note that you must use STT and LLM checkpoints compatible with the target language(s). For multilingual TTS, use ChatTTS or another backend that supports the target language.\n\n#### With the server version:\n\nFor automatic language detection:\n\n```bash\nspeech-to-speech \\\n    --stt parakeet-tdt \\\n    --language auto \\\n    --llm_backend mlx-lm \\\n    --model_name \"mlx-community\u002FQwen3-4B-Instruct-2507-bf16\"\n```\n\nOr for one language in particular, chinese in this example\n\n```bash\nspeech-to-speech \\\n    --stt whisper-mlx \\\n    --stt_model_name large-v3 \\\n    --language zh \\\n    --llm_backend mlx-lm \\\n    --model_name mlx-community\u002FQwen3-4B-Instruct-2507-bf16\n```\n\n#### Local Mac Setup\n\nFor automatic language detection (note: `--stt whisper-mlx` overrides the default parakeet-tdt from optimal settings, since Whisper `large-v3` has broader language coverage):\n\n```bash\nspeech-to-speech \\\n    --local_mac_optimal_settings \\\n    --stt parakeet-tdt \\\n    --language auto \\\n    --model_name mlx-community\u002FQwen3-4B-Instruct-2507-bf16\n```\n\nOr for one language in particular, chinese in this example\n\n```bash\nspeech-to-speech \\\n    --local_mac_optimal_settings \\\n    --stt whisper-mlx \\\n    --stt_model_name large-v3 \\\n    --language zh \\\n    --model_name mlx-community\u002FQwen3-4B-Instruct-2507-bf16\n```\n\n### Using Pocket TTS\n\nPocket TTS from Kyutai Labs provides streaming TTS with voice cloning capabilities. To use it:\n\n```bash\nspeech-to-speech \\\n    --tts pocket \\\n    --pocket_tts_voice jean \\\n    --pocket_tts_device cpu\n```\n\nAvailable voice presets: `alba`, `marius`, `javert`, `jean`, `fantine`, `cosette`, `eponine`, `azelma`. You can also use custom voice files or HuggingFace paths.\n\n## Command-line Usage\n\n> **_NOTE:_** References for all the CLI arguments can be found directly in the [arguments classes](.\u002Fsrc\u002Fspeech_to_speech\u002Farguments_classes) or by running `speech-to-speech -h`.\n\n### Module level Parameters \nSee [ModuleArguments](.\u002Fsrc\u002Fspeech_to_speech\u002Farguments_classes\u002Fmodule_arguments.py) class. Allows to set:\n- a common `--device` (if one wants each part to run on the same device)\n- `--mode`: `realtime` (default), `local`, `socket`, or `websocket`\n- chosen STT implementation (`--stt`)\n- chosen LLM backend (`--llm_backend`: `transformers`, `mlx-lm`, or `responses-api`)\n- chosen TTS implementation (`--tts`)\n- logging level\n\n### VAD parameters\nSee [VADHandlerArguments](.\u002Fsrc\u002Fspeech_to_speech\u002Farguments_classes\u002Fvad_arguments.py) class. Notably:\n- `--thresh`: Threshold value to trigger voice activity detection.\n- `--min_speech_ms`: Minimum duration of detected voice activity to be considered speech.\n- `--min_silence_ms`: Minimum length of silence intervals for segmenting speech, balancing sentence cutting and latency reduction.\n\n\n### STT, LLM and TTS parameters\n\n`model_name`, `torch_dtype`, and `device` are exposed for each implementation of the Speech to Text, Language Model, and Text to Speech. STT and TTS parameters use the handler prefix (e.g. `--stt_model_name`, `--llm_device`). LLM model selection and chat settings are shared across backends via unprefixed flags (e.g. `--model_name`, `--chat_size`); backend-specific flags use the `responses_api_` prefix for the `responses-api` backend and `llm_` prefix for local backends. See the [arguments classes](.\u002Fsrc\u002Fspeech_to_speech\u002Farguments_classes) for the full list.\n\nFor example:\n```bash\n# Local transformers\u002Fmlx-lm backend\n--model_name google\u002Fgemma-2b-it\n\n# OpenAI-compatible backend\n--llm_backend responses-api --model_name deepseek-chat --responses_api_base_url https:\u002F\u002Fapi.deepseek.com\n```\n\n### Generation parameters\n\nOther generation parameters can be set using the handler prefix + `_gen_`, e.g., `--stt_gen_max_new_tokens 128` or `--llm_gen_temperature 0.7`. These parameters can be added to the pipeline part's arguments class if not already exposed.\n\n## Citations\n\n### Silero VAD\n```bibtex\n@misc{Silero VAD,\n  author = {Silero Team},\n  title = {Silero VAD: pre-trained enterprise-grade Voice Activity Detector (VAD), Number Detector and Language Classifier},\n  year = {2021},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https:\u002F\u002Fgithub.com\u002Fsnakers4\u002Fsilero-vad}},\n  commit = {insert_some_commit_here},\n  email = {hello@silero.ai}\n}\n```\n\n### Distil-Whisper\n```bibtex\n@misc{gandhi2023distilwhisper,\n      title={Distil-Whisper: Robust Knowledge Distillation via Large-Scale Pseudo Labelling},\n      author={Sanchit Gandhi and Patrick von Platen and Alexander M. Rush},\n      year={2023},\n      eprint={2311.00430},\n      archivePrefix={arXiv},\n      primaryClass={cs.CL}\n}\n```\n\n### Parler-TTS\n```bibtex\n@misc{lacombe-etal-2024-parler-tts,\n  author = {Yoach Lacombe and Vaibhav Srivastav and Sanchit Gandhi},\n  title = {Parler-TTS},\n  year = {2024},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fparler-tts}}\n}\n```\n","huggingface\u002Fspeech-to-speech 是一个用于构建本地语音代理的开源项目。它通过整合语音活动检测（VAD）、语音转文字（STT）、语言模型（LM）和文字转语音（TTS）四个模块，实现端到端的语音交互功能。该项目支持多种主流模型，如Silero VAD、Whisper STT、Hugging Face Hub上的多种语言模型以及多个高质量TTS方案，确保了高度的灵活性与可扩展性。其设计注重模块化，便于用户根据需求更换或自定义各个组件。此外，speech-to-speech 提供了包括实时处理、服务器\u002F客户端模式、WebSocket通信等多种使用方式，适用于开发智能助手、语音识别系统等场景。",2,"2026-06-11 03:40:32","high_star"]