Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 1.44 KB

README.md

File metadata and controls

81 lines (62 loc) · 1.44 KB

Audioscribe

Audioscribe can turn any incoming or outgoing voice messages in telegram to its text with the help of speach recognition in python

  • Utilize telethon for automating telegram account
  • Utilize speachrecognition as voice to text tool
  • Utilize ffmpeg-python as format converter

Prerequisites

Debian/Ubuntu

sudo apt install ffmpeg

Usage

1- Clone the repo

git clone https://github.com/cybera3s/audioscribe.git

2- change directory to project root

cd app

3- create virtual environment and activate it

python -m virtualenv venv
source venv/bin/activate

4- install required packages

pip install -r requirements.txt

5- Create a .env file in django root folder

touch app/.env

6- Fill the .env file like the provided env sample

# Telegram
API_ID=api id from my.telegram.org
API_HASH=api hash from my.telegram.org
SESSION_NAME=session name

# Logging
STDOUT_LOG_PATH=stdout log path
STDERR_LOG_PATH=stderr log path
LOG_LEVEL=info

# Translation
LANG=speacking language

ROOT_MEDIA=root media folder

7- run the project

python run.py

Outgoing voice messages

extracted text will be appended to the message as a caption

Incoming voice messages

send a Like "👍" reaction to the incoming message, the extracted text will be sent as its reply

enjoy!

Contact

Email: cybera.3s@gmail.com
Telegram: ario3s