Skip to content

cybera3s/audioscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

automate telegram account voice to text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages