🦀 ClawHub
Telegram Voice Bot
by @polityang
Telegram bot that transcribes voice messages using Whisper and replies in Chinese with Microsoft Edge text-to-speech.
TERMINAL
clawhub install telegram-voice-bot📖 About This Skill
Telegram Voice Bot Skill
支持语音识别和中文语音合成的 Telegram 机器人技能。
功能
依赖
安装
pip install -r requirements.txt
配置
1. 从 @BotFather 获取 Telegram Bot Token 2. 设置环境变量:
export TELEGRAM_BOT_TOKEN="your_token"
使用方法
python bot.py
环境变量
| 变量 | 说明 | 默认值 | |------|------|--------| | TELEGRAM_BOT_TOKEN | Telegram Bot Token | (必填) | | VOICE_REPLY | 是否使用语音回复 | true |
Whisper 模型
在代码中修改 MODEL_NAME:
版本
许可证
MIT