This Telegram bot is designed to convert voice messages into text using speech recognition. Users can choose from multiple languages for the voice recognition, making it a versatile tool for multi-language chats or personal use.
- Supports English, Russian, Ukrainian, and Portuguese languages for speech recognition.
- Allows users to choose the language of the voice message for accurate transcription.
- Built on the aiogram and openAI-Whisper libraries for efficient and easy-to-maintain code.
-
Install Python 3.10.10 and FFmpeg
-
Open console and clone the repository:
git clone https://github.com/yourusername/telegram-speech-recognition-bot.git
- Change to the bot's directory:
cd telegram-speech-recognition-bot
- Install the required Python packages using pip:
pip install
- Set up your API token:
- Create a new bot on Telegram by talking to the @botFather.
- Based on
config/_example/botToken.py
createconfig/prod/botToken.py
(for production) and/orconfig/dev/botToken.py
(for development). - Copy your API token and replace the placeholder
API_TOKEN
inbotToken.py
- Run the bot:
python -m TelegramSpeechRecognitionBot
- Start a chat with the bot.
- Send a voice message to the bot.
- Choose the language of the voice message from the provided options.
- The bot will process the voice message and send you the transcribed text as a document.
If you have any issues or feature requests, please open an issue on the GitHub.
If you like this plugin and are considering donating to support continued development, use the buttons below!