8000 GitHub - MRKMKR/HeyClawy: Voice-first ESP32 companion for OpenClaw · GitHub
[go: up one dir, main page]

Skip to content
MRKMKRPublic
forked from omeriko9/HeyClawy

About

Voice-first ESP32 companion for OpenClaw

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

HeyClawy

HeyClawy is a voice-first ESP32 companion for OpenClaw.
You talk to the device, it sends your request to OpenClaw in real time, and speaks the response back.

Supported Devices (Current 3)

1) SenseCAP Watcher

SenseCAP Watcher

2) M5StickC Plus2

M5StickC Plus2

WaveShare Audio Board

Live Demo (SenseCAP)

SenseCAP Live Demo

Main Features

  • Voice commands feel natural: press once (or use wake word), speak, get a spoken response.
  • Wake word support is built in (default WakeNet model is Hey Jarvis).
  • Real-time OpenClaw integration over WebSocket:
    • chat responses
    • live task updates
    • cron notifications
    • status and activity data
  • Works with both display devices and a screenless audio board.
  • Built-in local web settings page for quick tuning without reflashing every time.

Requirements

Development machine

  • Windows (batch scripts included), Linux, or macOS
  • ESP-IDF v5.5+ (use vscode esp-idf extension)
  • USB cable for flashing
  • One of the supported devices (SenseCAP Watcher, M5StickCPlus2, Waveshare Audio Board)

OpenClaw machine (same LAN as the device)

  • OpenClaw gateway running and reachable (ws://<host>:18789)
  • STT service (faster-whisper HTTP endpoint, default port 5051)
  • TTS service (OpenAI-compatible EdgeTTS endpoint, default port 5050)

Simple EdgeTTS installation on the OpenClaw machine

Run:

docker run -d --name openclaw-edgetts --restart unless-stopped -p 5050:5050 travisvn/openai-edge-tts

Quick test:

curl -X POST "http://127.0.0.1:5050/v1/audio/speech" \
  -H "Content-Type: application/json" \
  -d "{\"model\":\"tts-1\",\"voice\":\"alloy\",\"input\":\"Hello from HeyClawy\"}" \
  --output hello.mp3

If hello.mp3 is created, TTS is ready.

Build (Easy Path)

From project root:

SenseCAP Watcher

build_sensecap.bat

M5StickC Plus2

build_m5stick.bat

Waveshare ESP32-S3 Audio Board

build_audio_board.bat

Then flash:

set ESPPORT=COM3
idf.py flash monitor

Replace COM3 with your actual serial port.

Configuration

1) Create local secrets files

  • Copy secrets_example.txt to secrets.txt
  • Copy main/include/secrets.h.example to main/include/secrets.h

2) Fill required values

At minimum:

  • WiFi SSID/password
  • OpenClaw host/port/token
  • Device key (SECRETS_DEVICE_KEY_HEX)
  • TTS host/port/api key/voice
  • STT host/port

3) Generate/pair device key (recommended)

python tools/test_openclaw_auth.py

Use the printed private key hex in main/include/secrets.h, then approve the device in OpenClaw.

4) Optional runtime tuning

After boot, you can update settings from the device web UI (audio, thresholds, behavior, services, etc.).

Caveats and Disclaimers

  • This project is under active development. Expect rough edges.
  • Keep all secrets local. secrets.txt and main/include/secrets.h must never be committed.
  • Wake word quality depends on mic conditions and background noise.
  • M5StickC Plus2 uses a passive buzzer, so voice playback quality is lower than codec-based boards.
  • You are responsible for securing your OpenClaw and LAN environment.

About

Voice-first ESP32 companion for OpenClaw

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0