Skip to content

albertofwb/chat_gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

chat_gateway

Voice listener that transcribes microphone input and talks to OpenClaw through the Gateway, using a dedicated session-id.

Prerequisites

  • openclaw installed and configured
  • Gateway running (openclaw gateway start or foreground openclaw gateway run)
  • Microphone available

Run

cd ~/chat_gateway
uv run voice_listener.py --list
uv run voice_listener.py

Recommended on this machine

cd ~/chat_gateway
source ~/.zshrc
uv run voice_listener.py --device 6 --session-id voice-albert-001

--device 6 is the pulse input device (usually the most stable choice). By default, replies are spoken locally via ~/.local/bin/tts (Xiaoxiao voice). During TTS playback, press Space in the terminal to stop playback immediately.

TTS options

# Disable local playback
uv run voice_listener.py --device 6 --no-tts

# Use another TTS command path
uv run voice_listener.py --device 6 --tts-command ~/.local/bin/xiaoxiao-tts

# Increase anti-echo cooldown (if TTS still gets re-captured)
uv run voice_listener.py --device 6 --post-tts-cooldown 2.0

Fixed independent session

uv run voice_listener.py --session-id voice-albert-001

Deliver reply back to channel (optional)

uv run voice_listener.py \
  --session-id voice-albert-001 \
  --deliver \
  --channel telegram \
  --target 1115213761

If gateway port/token is custom

uv run voice_listener.py \
  --gateway-port 18790 \
  --gateway-token "your_gateway_token"

Notes

  • Without --session-id, the script auto-generates one session per run.
  • The script prints both your transcript and parsed OpenClaw reply.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages