https://github.com/kolger/forty-two-transcribe
A Telegram bot that transcribes videos and audio messages to text via OpenAI Whisper API
https://github.com/kolger/forty-two-transcribe
openai self-hosted telegram whisper
Last synced: 3 months ago
JSON representation
A Telegram bot that transcribes videos and audio messages to text via OpenAI Whisper API
- Host: GitHub
- URL: https://github.com/kolger/forty-two-transcribe
- Owner: Kolger
- License: mit
- Created: 2024-11-23T17:31:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-24T18:00:03.000Z (over 1 year ago)
- Last Synced: 2025-01-25T00:13:47.993Z (over 1 year ago)
- Topics: openai, self-hosted, telegram, whisper
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Forty-two Telegram bot that transcribes videos and audio messages to text using the OpenAI Whisper API
Send a video, audio message, or audio file to the bot, and it will transcribe it to text.
## Setup
### 1. Create a .env file with the following content:
```
OPENAI_API_KEY=
TELEGRAM_API_TOKEN=
```
### 2. Run the bot
With docker-compose:
```bash
docker-compose up -d
```
Run without Docker (ffmpeg is required):
```bash
poetry install
poetry run python main.py
```
## Settings
| Variable | Description | Default Value |
| ------------------ | -------------------------------------------------------------------------------------------------- | ------------- |
| OPENAI_API_KEY | OpenAI API key | - |
| TELEGRAM_API_TOKEN | Telegram API token | - |
| ALLOWED_USERS | List of allowed users (username or user id). Should be a Python list. Example: [1234567890, durov] | - |
## Obtaining API keys
- [Telegram API key](https://core.telegram.org/bots#6-botfather)
- [OpenAI API key](https://beta.openai.com/signup/)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Created with love in Barcelona