Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xawos/owt
🦙🗣️ Ollama and Whisper Telegram bot, with advanced configuration
https://github.com/xawos/owt
ai-bots local-ai ollama telegram-aichatbot telegram-bots whisper
Last synced: 16 days ago
JSON representation
🦙🗣️ Ollama and Whisper Telegram bot, with advanced configuration
- Host: GitHub
- URL: https://github.com/xawos/owt
- Owner: xawos
- License: mit
- Created: 2024-11-29T01:59:48.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T02:53:03.000Z (about 2 months ago)
- Last Synced: 2024-11-29T03:25:14.252Z (about 2 months ago)
- Topics: ai-bots, local-ai, ollama, telegram-aichatbot, telegram-bots, whisper
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🦙🗣️ Ollama Telegram Bot
Chat **and speak** to your LLM, using Telegram bot!
Feel free to contribute!
Shamelessly forked from [Ollama-telegram](https://github.com/ruecat/ollama-telegram).
I only added the voice part and couple of things such as preregistering users once they appear in the `.env ` file at bot start.
## Prerequisites
- [Telegram-Bot Token](https://core.telegram.org/bots#6-botfather)
## Installation (Non-Docker)
+ Clone Repository
```
git clone https://github.com/xawos/owt
```
+ Install requirements from requirements.txt
```
pip install -r requirements.txt
```
+ Enter all values in .env.example as shown in the [original repo](https://github.com/ruecat/ollama-telegram) for starters.NB: My fork has 2 additional flags, `WSPRMODEL` and `USE_CUDA`, respectively set to `base` and `True`.
Both those options are meant for [Whisper](https://github.com/openai/whisper), list of models [here](https://github.com/openai/whisper?tab=readme-ov-file#available-models-and-languages).
+ Rename `.env.example` -> `.env` after setting the above options
+ Launch bot and wait until you see a line starting with `INFO:aiogram.dispatcher:Run polling for bot`
```
python3 run.py
```
If everything went well good job! You can now send voice messages and images to your Telegram bot!It also works on Raspberry Pi, with [Phi3](https://ollama.com/library/phi3) (without vision) it replies to a voice prompt in ~30s!
## Credits
+ [Ollama-telegram](https://github.com/ruecat/ollama-telegram) (original bot by [ruecat](https://github.com/ruecat/))
+ [Ollama](https://github.com/jmorganca/ollama)
+ [Whisper](https://github.com/openai/whisper)
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)## Libraries used
+ [Aiogram 3.x](https://github.com/aiogram/aiogram)
+ [OpenAI-Whisper](https://pypi.org/project/openai-whisper/)
+ [ffmpeg-python](https://github.com/kkroening/ffmpeg-python)
+ [and more](https://github.com/xawos/owt/blob/main/requirements.txt)