openclaw-voice

ไฝœ่€… Purple-Horizonsโœ“ ๅทฒ้ชŒ่ฏ

๐Ÿฆž Open-source browser-based voice chat for AI assistants. Self-hosted, private, free. Whisper STT + ElevenLabs TTS. Works with OpenAI, Claude, or custom agents.

125
Stars
30
Forks
Python
่ฏญ่จ€
2026/8/23
ๆทปๅŠ ๆ—ถ้—ด

โš ๏ธ ็ฌฌไธ‰ๆ–น่ฝฏไปถๅฃฐๆ˜Ž

ๆœฌ Skill ไธบ็ฌฌไธ‰ๆ–นๅผ€ๆบ่ฝฏไปถ๏ผŒ็‹ฌ็ซ‹ๆ‰˜็ฎกไบŽ GitHubใ€‚SkillTip ไป…ไธบไฟกๆฏ็›ฎๅฝ•๏ผŒไธๆŽงๅˆถๆˆ–็ปดๆŠคๅบ•ๅฑ‚ไป“ๅบ“ใ€‚ๆ‰€ๆ˜พ็คบ็š„ๅฎ‰ๅ…จๆฃ€ๆŸฅไธบ่‡ชๅŠจๅŒ–ไธ”่Œƒๅ›ดๆœ‰้™๏ผŒๅฎ‰่ฃ…ๅ‰่ฏท่‡ช่กŒๅฎกๆŸฅๆบ็ ใ€‚

้˜…่ฏปๆœๅŠกๆกๆฌพ

ๅฎ‰่ฃ…

ๆทปๅŠ ๅˆฐไฝ ็š„ Claude Code skills ็›ฎๅฝ•๏ผš

# Add to your Claude Code skills
git clone https://github.com/Purple-Horizons/openclaw-voice

ๅฟซ้€Ÿๅ…ฅ้—จ

ไฝฟ็”จ openclaw-voice ็ญ‰ Skills ็š„ๆŒ‡ๅ—ใ€‚

ๅฎ‰ๅ…จๆŠฅๅ‘Š

ๅทฒ้ชŒ่ฏ

ไธŠๆฌกๆ‰ซๆ๏ผšโ€”

{
  "status": "PASSED",
  "issues": []
}

README.md

OpenClaw Voice

Open-source browser-based voice interface for AI assistants.

Talk to your AI like you talk to Alexa โ€” but self-hosted, private, and connected to your own agent.

License Python

๐ŸŒ Website: openclawvoice.com

Features

FeatureDescription
๐ŸŽค Local STTWhisper runs locally via faster-whisper. Your voice never leaves your machine.
๐Ÿ”Š Streaming TTSElevenLabs with sentence-by-sentence streaming. Hear responses while they generate.
๐ŸŽฏ Voice Activity DetectionSilero VAD filters background noise. Works in noisy environments.
๐Ÿงน Smart Text CleaningStrips markdown, hashtags, URLs before TTS. No more "hash hash".
๐Ÿ”Œ Any AI BackendOpenAI, Claude, or full OpenClaw agent with memory and tools.
๐ŸŒ Browser-BasedNo app install. Works on desktop and mobile.
๐Ÿš— Continuous ModeHands-free conversation. Auto-listens after each response.

Quick Start

# Clone
git clone https://github.com/Purple-Horizons/openclaw-voice.git
cd openclaw-voice

# Install
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# Optional: Install VAD support (better noise handling)
pip install torch torchaudio

# Configure (create .env from example)
cp .env.example .env
# Edit .env with your API keys

# Run
PYTHONPATH=. python -m src.server.main

# Open http://localhost:8765

For OpenClaw Agents (Auto-Install)

One-liner for AI agents to self-install:

cd /tmp && \
git clone https://github.com/Purple-Horizons/openclaw-voice.git && \
cd openclaw-voice && \
python3 -m venv .venv && source .venv/bin/activate && \
pip install -r requirements.txt torch torchaudio && \
PYTHONPATH=. ELEVENLABS_API_KEY="$ELEVENLABS_API_KEY" OPENAI_API_KEY="$OPENAI_API_KEY" \
  nohup python -m src.server.main > /tmp/voice-server.log 2>&1 &

Configuration

Environment Variables

VariableRequiredDefaultDescription
ELEVENLABS_API_KEYYes*โ€”ElevenLabs API key for TTS
OPENAI_API_KEYYes*โ€”OpenAI API key (if not using gateway)
OPENCLAW_GATEWAY_URLNoโ€”OpenClaw gateway URL for full agent
OPENCLAW_GATEWAY_TOKENNoโ€”Gateway auth token
OPENCLAW_PORTNo8765Server port
OPENCLAW_STT_MODELNobaseWhisper model size
OPENCLAW_STT_DEVICENoautoDevice: auto, cpu, cuda, mps
OPENCLAW_REQUIRE_AUTHNofalseRequire API keys for clients

*One of OPENAI_API_KEY or OPENCLAW_GATEWAY_URL required.

Whisper Model Sizes

ModelSpeedQualityVRAMBest For
tinyFastestFair~400MBQuick testing
baseFastGood~1GBDefault. Good balance.
smallMediumBetter~2GBClearer transcription
mediumSlowerGreat~5GBAccuracy priority
large-v3-turboSlowBest~6GBMaximum accuracy

TTS Options

BackendTypeQualityLatencyNotes
ElevenLabsCloudExcellent~500msDefault. Streaming supported.
ChatterboxLocalVery Good~1sMIT license, voice cloning
XTTS-v2LocalExcellent~1sVoice cloning supported
MockLocalNone0msFor testing (silence)

ElevenLabs uses eleven_turbo_v2_5 for fastest response.

OpenClaw Gateway Integration

Connect to your full OpenClaw agent (same memory, tools, and persona as text chat):

# .env
OPENCLAW_GATEWAY_URL=http://localhost:18789
OPENCLAW_GATEWAY_TOKEN=your-token
ELEVENLABS_API_KEY=your-key

Add to your openclaw.json:

{
  "gateway": {
    "http": {
      "endpoints": {
        "chatCompletions": { "enabled": true }
      }
    }
  },
  "agents": {
    "list": [
      {
        "id": "voice",
        "workspace": "/path/to/workspace",
        "model": "anthropic/claude-sonnet-4-5"
      }
    ]
  }
}

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   WebSocket   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Browser   โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚          Voice Server               โ”‚
โ”‚  (mic/spk)  โ”‚               โ”‚                                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
                              โ”‚  โ”‚ Whisper โ”‚โ†’โ”‚ AI  โ”‚โ†’โ”‚ElevenLabsโ”‚ โ”‚
                              โ”‚  โ”‚  (STT)  โ”‚  โ”‚     โ”‚  โ”‚  (TTS)  โ”‚ โ”‚
                              โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
                              โ”‚       โ†‘                     โ”‚      โ”‚
                              โ”‚    [VAD]              [streaming]  โ”‚
                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Streaming Flow:

  1. User speaks โ†’ Whisper transcribes locally
  2. AI responds (streamed) โ†’ buffer sentences
  3. First sentence complete โ†’ TTS starts immediately
  4. Audio streams to browser while AI continues
  5. Result: ~50% faster perceived response

HTTPS for Mobile

Mobile browsers require HTTPS for microphone access. Options:

Tailscale Funnel (easiest):

tailscale funnel 8765
# Access via https://your-machine.tailnet-name.ts.net

nginx + Let's Encrypt:

server {
    listen 443 ssl;
    server_name voice.yourdomain.com;
    
    location / {
        proxy_pass http://127.0.0.1:8765;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

API

WebSocket Protocol

Connect to ws://localhost:8765/ws:

// Start recording
{ "type": "start_listening" }

// Send audio (base64 PCM float32, 16kHz)
{ "type": "audio", "data": "base64..." }

// Stop recording
{ "type": "stop_listening" }

// Receive events:
{ "type": "transcript", "text": "...", "final": true }
{ "type": "response_chunk", "text": "..." }        // Streaming text
{ "type": "audio_chunk", "data": "...", "sample_rate": 24000 }  // Streaming audio
{ "type": "response_complete", "text": "..." }     // Full response
{ "type": "vad_status", "speech_detected": true }  // VAD feedback

Roadmap

  • WebSocket voice gateway
  • Whisper STT (local)
  • ElevenLabs TTS
  • Streaming TTS (sentence-by-sentence)
  • Voice Activity Detection (Silero)
  • Text cleaning (markdown/hashtags/URLs)
  • Continuous conversation mode
  • OpenClaw gateway integration
  • WebRTC for lower latency
  • Voice cloning UI
  • Docker support

License

MIT License โ€” see LICENSE.

Credits


Made with ๐Ÿฆž by Purple Horizons

ๅธธ่ง้—ฎ้ข˜

What is openclaw-voice?โŒ„

openclaw-voice is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Purple-Horizons. ๐Ÿฆž Open-source browser-based voice chat for AI assistants. Self-hosted, private, free. Whisper STT + ElevenLabs TTS. Works with OpenAI, Claude, or custom agents. It has 125 GitHub stars.

Is openclaw-voice safe to use?โŒ„

Yes. openclaw-voice passed SkillsLLM's automated security scan โ€” a dependency vulnerability audit plus prompt-injection heuristics โ€” with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install openclaw-voice?โŒ„

Clone the repository with "git clone https://github.com/Purple-Horizons/openclaw-voice" and add it to your Claude Code skills directory (see the Installation section above). openclaw-voice ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is openclaw-voice written in?โŒ„

openclaw-voice is primarily written in Python. It is open-source under Purple-Horizons on GitHub, so you can review or fork the full source.

Are there alternatives to openclaw-voice?โŒ„

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh openclaw-voice against similar tools.

่ฏ„่ฎบ (0)

ๆš‚ๆ— ่ฏ„่ฎบ๏ผŒๆˆไธบ็ฌฌไธ€ไธชๅˆ†ไบซๆƒณๆณ•็š„ไบบ๏ผ

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI ๆ™บ่ƒฝไฝ“ai-agentsanthropicclaude-code
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI ๆ™บ่ƒฝไฝ“ai-agentsanthropicclaude-code
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI ๆ™บ่ƒฝไฝ“claude-codeai-tools
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

โญ 120,031โ‘‚ 19,897Shell
AI ๆ™บ่ƒฝไฝ“
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

ๅผ€ๅ‘่€…่ฟ˜ๅ–œๆฌข

ๅŸบไบŽๅ–œๆฌขๆญค Skill ็š„ๅผ€ๅ‘่€…ๆŠ•็ฅจๅ’Œๆ”ถ่—

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI ๆ™บ่ƒฝไฝ“ai-agentsanthropicclaude-code
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

โญ 201,881โ‘‚ 60,308TypeScript
MCP ๆœๅŠกๅ™จapisai-tools
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI ๆ™บ่ƒฝไฝ“ai-agentsanthropicclaude-code
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI ๆ™บ่ƒฝไฝ“claude-codeai-tools
ๆŸฅ็œ‹่ฏฆๆƒ… โ†’