Skip to content

soberhacker/telegram-speech-recognition-bot

Repository files navigation

Telegram Speech Recognition Bot

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.

Features

  • 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.

Installation

  1. Install Python 3.10.10 and FFmpeg

  2. Open console and clone the repository:

git clone https://github.com/yourusername/telegram-speech-recognition-bot.git
  1. Change to the bot's directory:
cd telegram-speech-recognition-bot
  1. Install the required Python packages using pip:
pip install
  1. Set up your API token:
  • Create a new bot on Telegram by talking to the @botFather.
  • Based on config/_example/botToken.py create config/prod/botToken.py (for production) and/or config/dev/botToken.py (for development).
  • Copy your API token and replace the placeholder API_TOKEN in botToken.py
  1. Run the bot:
python -m TelegramSpeechRecognitionBot

Usage

  1. Start a chat with the bot.
  2. Send a voice message to the bot.
  3. Choose the language of the voice message from the provided options.
  4. The bot will process the voice message and send you the transcribed text as a document.

Support

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!

Buy me a banana

Ko-fi Donation

PayPal Donation

About

Telegram Bot for offline transcribing audio using Whisper or Vosk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages