Install
openclaw skills install claw-voice-localConvert text to offline Telegram voice messages using piper TTS. Use when the agent should speak a response, send audio, or deliver voice notes via Telegram without internet connectivity.
openclaw skills install claw-voice-localLocal offline TTS → Telegram Voice Note
Convert any text to a Telegram voice message using piper TTS — fully offline, no cloud API required. Runs on Linux (including Raspberry Pi / ARM64).
python3 say.py "Your agent is ready."
python3 say.py "Good morning!" --chat-id 123456789
echo "Task complete." | python3 say.py
Set these environment variables (or add to ~/.openclaw/.env):
| Variable | Required | Description |
|---|---|---|
TELEGRAM_BOT_TOKEN | Yes | Your Telegram bot token |
TELEGRAM_CHAT_ID | Optional | Default chat ID (can be passed as --chat-id) |
TELEGRAM_BOT_TOKEN=required # Telegram bot token — get one from @BotFather
TELEGRAM_CHAT_ID=optional # Default target chat ID
This skill reads ~/.openclaw/.env as a fallback for credentials.
Ensure the file has restricted permissions: chmod 600 ~/.openclaw/.env
See README.md for step-by-step piper installation.
| File | Description |
|---|---|
say.py | Main entry point: text → Telegram voice note |
speak.py | Core TTS: text → OGG Opus via piper + ffmpeg |
send_voice.py | Telegram sender: OGG → voice message (no dependencies) |
.onnx)