Skip to main content

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

使用方法

  1. 在 Telegram 搜索 @w3c_tts_bot
  2. 发送 /start 查看帮助
  3. 发送任何文字,Bot 会返回语音
  4. 使用 /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


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.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tts_tg_bot-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tts_tg_bot-1.0.0.tar.gz.

File metadata

  • Download URL: tts_tg_bot-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tts_tg_bot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b1d95cf5bdaa2f82a68bc20e5bbaba088356b8d205d54cb8ce1b7f0b045dcfe6
MD5 f1fee262b1a8e64f0a8db65abe062efa
BLAKE2b-256 20a4c38f813c3fc520723c876f94a2cb315b7674101dc7714d9e7f191ad68932

See more details on using hashes here.

File details

Details for the file tts_tg_bot-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tts_tg_bot-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tts_tg_bot-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 256ae4b04eef4cfdc76e6aa29ad424703018321b4d2e726ce400a245ebe8d89a
MD5 edf08cca9e76a12e65076b0d620717f5
BLAKE2b-256 5b40216582445bdf19ec5e7fd3cbf8ee9c8aa4b6c7d118c5f7556f14072c6397

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page