微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎙️

免提语音操控你的 AI 工作台

Voice Assistant · v1.0.1
效率 安全 B 级 作者 kurtivy 公开目录收录
1.3k 下载 0 安装 3.8k 收藏 15 浏览

简介

将 PC 转变为免提 AI 语音助手,支持唤醒词、语音输入与高质量合成语音输出,适合需要解放双手的 OpenClaw 用户

原始描述

Windows voice companion for OpenClaw. Custom wake word via Porcupine, local STT via faster-whisper, streamed responses over the gateway WebSocket, and ElevenLabs TTS with natural chime/thinking sounds. Supports multi-turn conversation with automatic follow-up listening, mic suppression to prevent feedback, and a system tray with pause/resume. Recommended voices: Matilda (XrExE9yKIg1WjnnlVkGX, free tier) or Ivy (MClEFoImJXBTgLwdLI5n, paid tier). Fully customizable wake word, voice, hotkey, and silence thresholds.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/voice-assistant-35679/
其它 Agent解压到它自己的 skills 目录,目录名用 voice-assistant-35679

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: voice-assistant description: > Always-on voice assistant for OpenClaw. Turns your PC into a hands-free AI assistant with wake word detection, speech-to-text, and text-to-speech. Use this skill when the user wants to set up, configure, run, or troubleshoot the voice assistant, or when they ask about voice control for OpenClaw. metadata: { "openclaw": { "emoji": "🎙️", "os": ["win32"], "requires": { "bins": ["python"], "env": [ "GATEWAY_TOKEN", "GATEWAY_URL", "ELEVENLABS_API_KEY", "PORCUPINE_ACCESS_KEY", ], }, "primaryEnv": "ELEVENLABS_API_KEY", }, }

Voice Assistant for OpenClaw

A Python companion app that gives OpenClaw a voice. Say a wake word (or press a hotkey), speak naturally, and hear the AI respond — then keep talking for multi-turn conversation.

Mic → Porcupine wake word → faster-whisper STT → OpenClaw Gateway → ElevenLabs TTS → Speaker

Quick Start

# 1. Navigate to the skill scripts
cd {baseDir}/scripts

# 2. Create a virtual environment and install dependencies
python -m venv venv
venv\Scripts\pip install -r requirements.txt

# 3. Copy .env.example to .env and fill in your keys
copy .env.example .env

# 4. Run the assistant
venv\Scripts\python src\assistant.py

Requirements

Service What you need Cost
OpenClaw gateway Running locally on ws://127.0.0.1:18789 with a gateway token —
ElevenLabs API key + voice ID (Starter tier minimum, $5/mo) $5/mo
Picovoice Access key from picovoice.ai (free tier works) Free
Python 3.10+ (tested on 3.14) —
Microphone Any input device —

Configuration (.env)

# OpenClaw Gateway
GATEWAY_URL=ws://127.0.0.1:18789
GATEWAY_TOKEN=your-gateway-token

# ElevenLabs TTS
ELEVENLABS_API_KEY=your-api-key
ELEVENLABS_VOICE_ID=JBFqnCBsd6RMkjVDRZzb
ELEVENLABS_MODEL_ID=eleven_v3

# Porcupine Wake Word
PORCUPINE_ACCESS_KEY=your-access-key
PORCUPINE_MODEL_PATH=              # path to custom .ppn file (optional)

# Whisper STT
WHISPER_MODEL=base                  # tiny, base, small, medium, large

# Tuning
WAKE_SENSITIVITY=0.7               # 0.0–1.0 (higher = more sensitive)
SILENCE_TIMEOUT=1.5                # seconds of silence to stop recording
HOTKEY=ctrl+shift+k                # global keyboard shortcut

Custom Wake Word

  1. Go to Picovoice Console
  2. Create a custom wake word (e.g. "Hey Claudia", "Hey OpenClaw")
  3. Download the .ppn file for your platform
  4. Set PORCUPINE_MODEL_PATH in .env to the file path
  5. Without a custom model, falls back to built-in "hey google"

Personalized Voice Sounds

The assistant plays short audio clips when activated ("Yep!", "Hi!") and while thinking ("Hmm...", "Let me think..."). Generate these in your chosen ElevenLabs voice:

cd {baseDir}/scripts
venv\Scripts\python generate_chime_sounds.py
venv\Scripts\python generate_thinking_sounds.py

Re-run these after changing ELEVENLABS_VOICE_ID.

Running in Background

Use start.bat to launch without a console window (runs via pythonw.exe). The assistant appears as a system tray icon with Pause/Resume/Quit controls.

For auto-start on Windows, create a shortcut to start.bat in shell:startup.

How It Works

  1. Wake — Porcupine detects the wake word (or user presses hotkey)
  2. Chime — Plays a random activation sound ("Yep!", "Hi!")
  3. Record — Records speech until 1.5s of silence (2s grace period for initial silence)
  4. Thinking — Plays a filler sound ("Hmm...", "Let me think...")
  5. Transcribe — faster-whisper converts audio to text locally (CPU, int8)
  6. Gateway — Sends text to OpenClaw gateway via WebSocket, streams response
  7. Speak — ElevenLabs converts response to speech, plays through speakers
  8. Follow-up — Automatically listens for 5s after speaking for conversation continuity
  9. Idle — Returns to wake word listening after 5s of silence

Mic suppression keeps the microphone muted during all speaker output to prevent feedback loops.

Detailed Architecture

See references/architecture.md for source file breakdown, WebSocket protocol details, and audio pipeline internals.

Troubleshooting

See references/troubleshooting.md for common issues with mic detection, gateway connection, TTS errors, and wake word tuning.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

voice-controltext-to-speechspeech-to-textopenclawelevenlabsporcupinehands-freeaccessibilitywindows-only

同类 Skill