This bot can transcribe audio and video files sent by users. It uses the whisper library for transcription and the googletrans library for translation.
- Python 3.6 or later
- aiogram
- pydub
- whisper
- googletrans
- ffmpeg (for video transcription)
- Create a new Python project and install the required dependencies.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
-
Create a new Telegram bot and get its token.
-
Create a
.env
file and add the following environment variables:
BOT_TOKEN=<your bot token>