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.1.tar.gz (6.6 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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for tts_tg_bot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 751a6cc0d01520cb248719df591b26384398d0052afd4d6f8a7e2b4cf06b7ed0
MD5 75017a3b539871bf43a07649d876b6ee
BLAKE2b-256 085ceb87118e3994ffbcbad107fb050f5c1069499170efbef5ceb5c103514ad8

See more details on using hashes here.

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

Hashes for tts_tg_bot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a259a25a308da92a6422515bcfba95673442f0c536c1c73f4d63883a08d080be
MD5 69a9ef20096836f25d5c46ef546a5b13
BLAKE2b-256 63400d4cf6c76052d620a4728676a5f78fcee16c77197b3d402cd2c4d57450d7

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