Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-23T22:34:47.000Z (about 1 month ago)
- Last Synced: 2024-11-23T23:24:33.857Z (about 1 month ago)
- Topics: openai, self-hosted, telegram, whisper
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- 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