Skip to content

silasmartin/telegram-transcription-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Transcription Bot

⚠️ Disclaimer

Although I always keep your and my own privacy in mind while developing software, I offer this experimental service for free to anybody who would like to use it, but I do not guarantee anything, including your privacy. Use this bot at your own risk!

Description

This bot uses OpenAI's whisper and Python Telegram Bot to transcribe your voice messages, video messages and even raw audio and video files from Telegram and other messengers like WhatsApp or Signal. You can just send the message to your Telegram-Bot and it responds with the containing text.

Installation

Docker

I recommend using Docker on a server to build and run this repository. To do this, run these commands as root:

  1. Clone the repository & cd into it
git clone https://github.com/silasmartin/telegram-transcription-bot.git && cd telegram-transcription-bot
  1. Edit the .env file and insert your token. You can get it via BotFather.
nano .env
  1. Build the image
docker build . --tag ttbot
  1. Run the image
docker run -d --restart unless-stopped ttbot

It takes a few moments to download the whisper model, depending on your internet speed. You could always check the status with docker logs.

Local installation

You can run this on a local machine as well. Just clone the repository, edit .env, install requirements.txt with pip and run main.py - that's it!

Need help?

I'm happy to take a look. Reach out!

About

Telegram bot that transcribes audio in any message.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published