{"id":16064446,"url":"https://github.com/antoniosbarotsis/telegram-transcriber","last_synced_at":"2026-02-19T05:31:02.891Z","repository":{"id":232197480,"uuid":"781571470","full_name":"AntoniosBarotsis/telegram-transcriber","owner":"AntoniosBarotsis","description":"A Telegram bot for transcribing voice messages","archived":false,"fork":false,"pushed_at":"2025-02-20T18:03:32.000Z","size":405,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T14:22:46.028Z","etag":null,"topics":["telegram","transcribe","voice","whisper"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoniosBarotsis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-03T16:26:57.000Z","updated_at":"2025-02-20T18:03:35.000Z","dependencies_parsed_at":"2024-05-09T00:28:31.948Z","dependency_job_id":"6f821873-d93c-42f9-b021-bb2ed71b30c3","html_url":"https://github.com/AntoniosBarotsis/telegram-transcriber","commit_stats":null,"previous_names":["antoniosbarotsis/telegram-transcriber"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoniosBarotsis/telegram-transcriber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoniosBarotsis%2Ftelegram-transcriber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoniosBarotsis%2Ftelegram-transcriber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoniosBarotsis%2Ftelegram-transcriber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoniosBarotsis%2Ftelegram-transcriber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoniosBarotsis","download_url":"https://codeload.github.com/AntoniosBarotsis/telegram-transcriber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoniosBarotsis%2Ftelegram-transcriber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T05:11:50.834Z","status":"ssl_error","status_checked_at":"2026-02-19T05:11:38.921Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["telegram","transcribe","voice","whisper"],"created_at":"2024-10-09T05:07:54.663Z","updated_at":"2026-02-19T05:31:02.873Z","avatar_url":"https://github.com/AntoniosBarotsis.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Transcriber Bot\n\nA simple Telegram bot that replies to voice messages with their transcription.\n\nThe project is split into a [Whisper](https://github.com/SYSTRAN/faster-whisper) server (`./python`) and\nthe telegram bot (`./rust`).\n\n## The Whisper Server\n\n### Dependencies\n\n- Python 3.10\n- CUDA version 12\n- WSL (if on Windows)\n\n### Configuration\n\n1. Create a Python virtual environment:\n```\npython -m venv name_of_your_venv\n```\n2. Activate the virtual environment\n```\nsource name_of_your_venv/bin/activate\n```\n2. Install the requirements:\n```\npip install -r requirements.txt\n```\n\n### Testing if Whisper can run\n\nYou can run\n```\npython test_transcription.py\n```\nTo test whether everything has been installed correctly. The output should be plain text.\n\n### Running\n\nThe API used to receive and respond to requests is FastAPI and the server can be run using Uvicorn:\n```\nuvicorn main:app\n```\n\nBy default, the port it will receive requests on is `8000`. You will also need to forward this port and set a static IP.\n\nAn alternative would be to configure [ngrok](https://dashboard.ngrok.com/get-started/setup/windows).\n\nIf you want to test changes to the code whilst running the bot, add `--reload` at the end of the command.\n\n\n## The Telegram Bot\n\n### Dependencies\n\n- [ffmpeg](https://ffmpeg.org/download.html)\n- [openssl](https://docs.rs/openssl/latest/openssl/#automatic)\n\n### Configuration\n\nCreate a `./rust/.env` file and fill in the following parameters:\n\n- `TELOXIDE_TOKEN`: [The Telegram bot token](https://core.telegram.org/bots#how-do-i-create-a-bot)\n- `CHAT_IDS`: A comma delimited list of whitelisted chat ids. \n  [Here's a thread on how to get those](https://stackoverflow.com/a/69302407/12756474)\n- `WHISPER_URL`: The URL of the Whisper server\n- `RUST_LOG` (optional): Use this to configure logging. I have it set to `RUST_LOG=info,telegram_transcriber=debug`\n  but `RUST_LOG=info` is probably enough for you.\n\n### Running\n\nThis is just another Rust project so you can just `cargo run`. I wanted to run this on my Raspberry\nPi and just to save you a few headaches, if you only connect to your Pi via SSH, try running it with\n`nohup cargo r -r \u0026`, this will run it in the background even after you disconnect from the SSH\nsession and all the logs will be dumped in `./rust/nohup.out`.\n\n### Cross Compiling\n\nWe are running the bot on a Raspberry Pi which takes sometime to compile (especially on release).\nOpenSSL always causes some issues with cross compilation but thankfully,\n[`cargo cross`](https://github.com/cross-rs/cross) helps with that. We opted to solve the issue by\noptionally statically compiling OpenSSL into the binary which you can do with the following:\n\n```sh\n$ cross build --target aarch64-unknown-linux-gnu -r -F openssl-vendored\n```\n\nThis is admitedly not very fast but it is fast*er*. If you really want you can check out\n[this](https://github.com/cross-rs/cross/wiki/Recipes#pre-build) to link it dynamically instead,\njust know you might need to fiddle with your apt sources or build some libs from source.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniosbarotsis%2Ftelegram-transcriber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoniosbarotsis%2Ftelegram-transcriber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniosbarotsis%2Ftelegram-transcriber/lists"}