This is a simple Telegram AI Voice Bot using the Elevenlabs API. This bot can convert text to speech in multiple languages. It works in inline mode and in chat mode. You can change the voice of the bot using the /voice command.
- Python 3.6 or higher
- aiogram
- API Key from Elevenlabs
- Telegram Bot Token
- Clone this repository
- Install the required packages using pip
pip install -r requirements.txt- Create a new bot using BotFather on Telegram and get the bot token
- Get the API key from Elevenlabs
- Register You voice on the Elevenlabs website and get ID of the voice
- Replace the placeholders in the
.env.examplefile with your bot token and API key - Rename the
.env.examplefile to.env - Replace the placeholder in the voices.json file with the language code you want to use
- Rename the
voices.json.examplefile tovoices.json - Run the bot using the following command
python bot.py- Send a text message to the bot
- The bot will reply with the voice message
- You can change voice of the bot using /voice command
- You can use inline query in any chat to convert text to speech @YourBotName text
This project is licensed under the MIT License - see the LICENSE file for details
This project is created by Artur Shamsiev
If you have any questions or need help with this project, you can contact me on Telegram: @ZorgeR
If you like this project, you can donate to me using the following methods:



