Telegram bot for text-to-speech and speech-to-text conversion
Project description
W3C TTS Bot
Telegram 文字转语音机器人
功能特性
- ✅ 文字转语音(中英文支持)
- ✅ 使用微软 Edge TTS(免费)
- ✅ 多种语音选择
- ✅ 自动语音回复
快速开始
1. 安装
pip install tts-tg-bot
2. 配置 Token
创建 token.txt 文件,写入你的 Telegram Bot Token:
echo "YOUR_BOT_TOKEN" > token.txt
3. 启动 Bot
tts-tg-bot
或使用 Python 模块:
python -m tts_bot.bot
使用方法
- 在 Telegram 搜索
@w3c_tts_bot - 发送
/start查看帮助 - 发送任何文字,Bot 会返回语音
- 使用
/voice命令切换语音
支持的语音
- 中文女声:zh-CN-XiaoxiaoNeural(默认)
- 中文男声:zh-CN-YunxiNeural
- 英文女声:en-US-JennyNeural
- 英文男声:en-US-GuyNeural
技术栈
- Python 3
- python-telegram-bot - Telegram Bot API
- edge-tts - 微软免费 TTS 服务
Bot 信息
- Bot 名称: W3C TTS Bot
- Username: @w3c_tts_bot
开发者
TTS Bot 开发战士 ⚔️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tts_tg_bot-1.0.1.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tts_tg_bot-1.0.1.tar.gz.
File metadata
- Download URL: tts_tg_bot-1.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751a6cc0d01520cb248719df591b26384398d0052afd4d6f8a7e2b4cf06b7ed0
|
|
| MD5 |
75017a3b539871bf43a07649d876b6ee
|
|
| BLAKE2b-256 |
085ceb87118e3994ffbcbad107fb050f5c1069499170efbef5ceb5c103514ad8
|
File details
Details for the file tts_tg_bot-1.0.1-py3-none-any.whl.
File metadata
- Download URL: tts_tg_bot-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a259a25a308da92a6422515bcfba95673442f0c536c1c73f4d63883a08d080be
|
|
| MD5 |
69a9ef20096836f25d5c46ef546a5b13
|
|
| BLAKE2b-256 |
63400d4cf6c76052d620a4728676a5f78fcee16c77197b3d402cd2c4d57450d7
|