An open API service indexing awesome lists of open source software.

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.

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 :)