Charan Tej Mandali

Voice Assistant

AIエージェントv0.1.0
作者:Charan Tej Mandali更新日 2026-05-11voice-assistant@clawhub_charantejmandali18/voice-assistant
エージェントフレームワークタスク自動化ツール呼び出し#Audio

AlphaMoatによると、2026-09時点でVoice Assistantのダウンロード数は3,020、スター数は4で、AIスキル全体5,078件中3,718位、AIエージェントでは969件中751位です。

インストール数
160
ダウンロード数
3020
スター数
4
総合順位
#3,718
全体の上位 74% · AIエージェントの上位 78%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗9029014-
SkillHub ↗16030204—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

ブラウザーから OpenClaw ゲートウェイに接続し音声処理を設定できます。音声や文字起こしは外部送信・記録される場合があるため、信頼できるネットワークと最小権限を使ってください。 Python/uv、設定済みの稼働中 Gateway、マイク権限、選択した STT/TTS 用 Deepgram または ElevenLabs の認証情報が必要です。サービスは未認証なので localhost に限定し、公開前に認証と Origin 確認を追加してください。ログを確認し、未承認の機密音声を送らないでください。

資料公開日 2026-10-27

できること

  • 承認済み OpenClaw エージェントのブラウザー音声画面を設定する

使う場面

  • 音声サービスの処理と Gateway ツール権限が承認済みの場合

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

開始前に音声提供元・localhost 設定・Gateway 権限を確認し、まだ録音や送信はしないでください。

月次の推移

ダウンロード数3020
1719241831162026-03 · ダウンロード数 18152026-05 · ダウンロード数 22802026-07 · ダウンロード数 26772026-08 · ダウンロード数 27972026-09 · ダウンロード数 302026-0326-09
スター数4
3452026-03 · スター数 42026-05 · スター数 42026-07 · スター数 42026-08 · スター数 42026-09 · スター数 426-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093020—4
2026-082797+4.5%4
2026-072677—4
2026-052280—4
2026-031815—4

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

5.6 KB・ClawHub v0.1.0
---
name: voice-assistant
description: Real-time voice assistant for OpenClaw. Streams mic audio through configurable STT (Deepgram or ElevenLabs) into your OpenClaw agent, then speaks the response via configurable TTS (Deepgram Aura or ElevenLabs). Sub-2s time-to-first-audio with full streaming at every stage.
metadata:
  openclaw:
    emoji: "🎙️"
    requires:
      bins: ["uv"]
      env: []
    primaryEnv: "VOICE_STT_PROVIDER"
すべて表示(全 141 行)
    install:
      - id: "uv"
        kind: "brew"
        formula: "uv"
        bins: ["uv"]
        label: "Install uv (brew)"
---

# Voice Assistant

Real-time voice interface for your OpenClaw agent. Talk to your agent and hear it respond — with configurable STT and TTS providers, full streaming at every stage, and sub-2 second time-to-first-audio.

## Architecture

```
Browser Mic → WebSocket → STT (Deepgram / ElevenLabs) → Text
  → OpenClaw Gateway (/v1/chat/completions, streaming) → Response Text
  → TTS (Deepgram Aura / ElevenLabs) → Audio chunks → Browser Speaker
```

The voice interface connects to your running OpenClaw gateway's OpenAI-compatible endpoint. It's the same agent with all its context, tools, and memory — just with a voice.

## Quick Start

```bash
cd {baseDir}
cp .env.example .env
# Fill in your API keys and gateway URL
uv run scripts/server.py
# Open http://localhost:7860 and click the mic
```

## Supported Providers

### STT (Speech-to-Text)
| Provider   | Model            | Latency  | Notes                        |
|-----------|------------------|----------|------------------------------|
| Deepgram  | nova-2 (streaming) | ~200-300ms | WebSocket streaming, best accuracy/speed |
| ElevenLabs | Scribe v1        | ~300-500ms | REST-based, good multilingual |

### TTS (Text-to-Speech)
| Provider    | Model        | Latency  | Notes                          |
|------------|--------------|----------|--------------------------------|
| Deepgram   | aura-2       | ~200ms   | WebSocket streaming, low cost  |
| ElevenLabs | Turbo v2.5   | ~300ms   | Best voice quality, streaming   |

## Configuration

All configuration is via environment variables in `.env`:

```bash
# === Required ===
OPENCLAW_GATEWAY_URL=http://localhost:4141/v1    # Your OpenClaw gateway
OPENCLAW_MODEL=claude-sonnet-4-5-20250929        # Model your gateway routes to

# === STT Provider (pick one) ===
VOICE_STT_PROVIDER=deepgram                      # "deepgram" or "elevenlabs"
DEEPGRAM_API_KEY=your-key-here                   # Required if STT=deepgram
ELEVENLABS_API_KEY=your-key-here                 # Required if STT=elevenlabs

# === TTS Provider (pick one) ===
VOICE_TTS_PROVIDER=elevenlabs                    # "deepgram" or "elevenlabs"
# Uses the same API keys as above

# === Optional Tuning ===
VOICE_TTS_VOICE=rachel                           # ElevenLabs voice name/ID
VOICE_TTS_VOICE_DG=aura-2-theia-en              # Deepgram Aura voice
VOICE_VAD_SILENCE_MS=400                         # Silence before end-of-turn (ms)
VOICE_SAMPLE_RATE=16000                          # Audio sample rate
VOICE_SERVER_PORT=7860                           # Server port
VOICE_SYSTEM_PROMPT=""                           # Optional system prompt override
```

## Provider Combinations

| Setup                              | Best For                        |
|------------------------------------|---------------------------------|
| Deepgram STT + ElevenLabs TTS     | Best quality voice output        |
| Deepgram STT + Deepgram TTS       | Lowest latency, single vendor    |
| ElevenLabs STT + ElevenLabs TTS   | Best multilingual support        |

## How It Works

1. **Browser captures mic audio** via Web Audio API and streams raw PCM over a WebSocket
2. **Server receives audio** and pipes it to the configured STT provider's streaming endpoint
3. **STT returns partial transcripts** in real-time; on end-of-utterance the full text is sent to the OpenClaw gateway
4. **OpenClaw gateway streams** the LLM response token-by-token via SSE (Server-Sent Events)
5. **Tokens are accumulated** into sentence-sized chunks and streamed to the TTS provider
6. **TTS returns audio chunks** that are immediately forwarded to the browser over the same WebSocket
7. **Browser plays audio** using the Web Audio API with a jitter buffer for smooth playback

## Interruption Handling (Barge-In)

When the user starts speaking while the agent is still talking:
- Current TTS audio is immediately cancelled
- The agent stops its current response
- New STT session begins capturing the user's interruption

## Usage Examples

```
User: "Hey, set up my voice assistant"
→ OpenClaw runs: cd {baseDir} && cp .env.example .env
→ Opens .env for the user to fill in API keys
→ Runs: uv run scripts/server.py

User: "Start a voice chat"
→ Opens http://localhost:7860 in the browser

User: "Switch TTS to Deepgram"
→ Updates VOICE_TTS_PROVIDER=deepgram in .env
→ Restarts the server
```

## Troubleshooting

- **No audio output?** Check that your TTS API key is valid and the provider is set correctly
- **High latency?** Use Deepgram for both STT and TTS; ensure your gateway is on the same network
- **Cuts off speech?** Increase `VOICE_VAD_SILENCE_MS` to 600-800ms
- **Echo/feedback?** Use headphones, or enable the built-in echo cancellation in the browser UI

## Latency Budget

| Stage                    | Target    | Actual (typical) |
|-------------------------|-----------|------------------|
| Audio capture + VAD     | <200ms    | ~100-150ms       |
| STT transcription       | <400ms    | ~200-400ms       |
| OpenClaw LLM first token| <1500ms   | ~500-1500ms      |
| TTS first audio chunk   | <400ms    | ~200-400ms       |
| **Total first audio**   | **<2.5s** | **~1.0-2.5s**    |

AIエージェントの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。