https://github.com/kourva/texttospeechbot
Text To Speech Telegram Bot with Brian voice.
https://github.com/kourva/texttospeechbot
brian python telegram-bot telegram-bot-api text-to-speech tts tts-api
Last synced: 9 months ago
JSON representation
Text To Speech Telegram Bot with Brian voice.
- Host: GitHub
- URL: https://github.com/kourva/texttospeechbot
- Owner: Kourva
- Created: 2023-02-14T20:47:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T15:03:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T13:45:54.059Z (about 1 year ago)
- Topics: brian, python, telegram-bot, telegram-bot-api, text-to-speech, tts, tts-api
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Text To Speech Telegram Bot
Text To Speech Telegram Bot with Brian voice that converts all your messages into voice.
It uses streamelements API for TTS.
# Installation
+ clone
```bash
git clone https://github.com/Kourva/TextToSpeechBot && cd TextToSpeechBot
```
+ requirements
```bash
pip install -r requirements.txt
```
+ run
```bash
python3 bot.py
```
# Config
###### You need to open **token.env** file and put your Token inside the file.
###### You can get one from [Bot father](https://t.me/botfather).
```python
bot_token=your-bot-token-here
```
# Note (**Fixed**)
###### This bot will not work in groups **(It will send the voice to your private message)**.
###### The reason is that i wrote `user.usrid` when sending voice. so it will send it to user chat-ID, not other chat-ID's.
###### For fixing this. just change `user.usrid` to `message.chat.id` in [send_voice] method.
###### Update: Fixed! now bot can send voices to groups.
# Thanks
###### Start the bot and enjoy - Don't forget to star :)