← 返回
AI智能 Key

Telegram Voice Bot

Telegram bot that transcribes voice messages using Whisper and replies in Chinese with Microsoft Edge text-to-speech.
使用 Whisper 转录语音消息并通过微软 Edge 语音合成以中文回复的 Telegram 机器人。
polityang
AI智能 clawhub v2.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 637
下载
💾 11
安装
1
版本
#latest

概述

Telegram Voice Bot Skill

支持语音识别和中文语音合成的 Telegram 机器人技能。

功能

  • 🎤 语音识别 - 使用 OpenAI Whisper 自动识别语音消息
  • 🔊 语音合成 - 使用 Microsoft Edge TTS 进行中文语音回复
  • 🇨🇳 中文支持 - 默认支持中文

依赖

  • Python 3.8+
  • openai-whisper
  • edge-tts
  • requests
  • Telegram Bot Token

安装

pip install -r requirements.txt

配置

  1. 从 @BotFather 获取 Telegram Bot Token
  2. 设置环境变量:

```bash

export TELEGRAM_BOT_TOKEN="your_token"

```

使用方法

python bot.py

环境变量

变量说明默认值
--------------------
TELEGRAM_BOT_TOKENTelegram Bot Token(必填)
VOICE_REPLY是否使用语音回复true

Whisper 模型

在代码中修改 MODEL_NAME

  • tiny (最快, ~75MB)
  • base (默认, ~74MB)
  • small (~244MB)
  • medium (~769MB)
  • large (~1550MB)

版本

  • v2.0.0 - 添加中文语音合成
  • v1.0.0 - 初始版本(仅语音识别)

许可证

MIT

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-29 23:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,189
communication-collaboration

Voice

polityang
通过Telegram实现语音通信,自动转录收到的语音并以TTS回复,适用于所有语音相关场景。
★ 0 📥 1,219
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,592