Skip to content

Kourva/TextToSpeechBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
git clone https://github.com/Kourva/TextToSpeechBot && cd TextToSpeechBot
  • requirements
pip install -r requirements.txt
  • run
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.
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 :)

Releases

No releases published

Packages

No packages published