This Telegram bot is designed to transcribe and translate voice messages as well as audio files using the Whisper API. With this bot, you can easily convert spoken words in VNs or audio files into text and even translate them into different languages.
If you want to use the bot, simply visit the following link: WhisperBot
If you want to create a similar bot or run it locally, follow these steps:
Make sure you have the following installed:
- Python 3.x
- Pip
- Clone the Repository
git clone git@github.com:adebola-duf/whisperbot.git- Navigate to the project directory:
cd whisperbot- Install the required dependencies:
pip install -r requirements.txt- Obtain API keys
- Get your Telegram Bot Token from BotFather.
- Obtain the Whisper API key from Whisper API.
- Create a .env file in the project directory and add your API keys:
TELEGRAM_TOKEN=your_telegram_bot_token
WHISPER_API_KEY=your_whisper_api_key
WEBHOOK_URL_BASE=your_deployment_urlpython whisperbot.pyIf you'd like to contribute to the development of this bot, feel free to submit a pull request or open an issue.
If you want to run the bot locally then you should comment the uvicorn.run code. And uncomment the WhiserBot.polling() line.