An end-to-end multi-source data ingestion, speech-to-text (ASR), document OCR parsing, and text synthesis platform built with Python, PyTorch, NVIDIA NeMo, Hugging Face VLMs, and Gradio.
Kutub Automator automates the collection, document parsing, transcription, cleaning, and indexing of complex media streams and historical book scans.
Telegram Channel Crawler (modules/telegram_scraper.py):
Telethon for crawling target Telegram channels and groups.Facebook Video Downloader (modules/fb_downloader.js):
modules/transcription_engine.py):
stt_ar_fastconformer_hybrid_large_pc_v1.0 model.pydub, soundfile, and librosa.PyMuPDF PDF Renderer (modules/unlimited_ocr.py):
fitz (PyMuPDF).Baidu Unlimited-OCR VLM Integration:
Unlimited-OCR Vision-Language Model locally in bfloat16 precision.TPSTextStreamer for real-time live token streaming to the Gradio web UI.<|det|>...<|/det|>), reference markers, and cleans page breaks.Qari Arabic OCR Engine (modules/qari_ocr.py):
modules/higgs_tts.py):
Gradio Web Dashboard (app.py):
Windows & System Stability Patches:
WinError 32 file locking on Windows.graph TD
subgraph Ingestion Layer
A1[Telegram Channels] -->|Telethon Scraper| B[Workspace Download Cache]
A2[Facebook Videos] -->|Node.js Downloader| B
A3[Local PDF Scans & Audio] --> B
end
subgraph Processing Engine
B -->|Audio Streams| C[Audio Splitter & Resampler]
C --> D[NVIDIA NeMo FastConformer ASR]
B -->|PDF Documents| E[PyMuPDF Renderer]
E -->|Page Images| F[Baidu Unlimited-OCR VLM]
E -->|Page Images| G[Qari OCR Engine]
F --> H[Live Streamer Patch]
end
subgraph Post-Processing & Output
D --> I[SRT Subtitles / Timed Logs]
H --> J[Regex Tag Stripper & Text Normalizer]
G --> J
J --> K[Clean Text / Dataset Export]
K -->|Optional| L[Higgs TTS Speech Synthesis]
end
subgraph User Interface
M[Gradio Multi-Tab Web UI] <--> Ingestion Layer
M <--> Processing Engine
M <--> Post-Processing & Output
end
nemo_toolkit[asr]), Unsloth, Baidu Unlimited-OCR.fitz), Pillow, OpenCV, Librosa, SoundFile, Pydub.Clone the repository:
git clone https://github.com/h-yassin-ai/Al-Kutub-Automator.git
cd Al-Kutub-Automator
Install dependencies:
pip install -r requirements.txt
Configure environment:
Create a .env file in the project root:
TG_API_ID=your_telegram_api_id
TG_API_HASH=your_telegram_api_hash
TG_PHONE=your_phone_number
HF_TOKEN=your_huggingface_token
Launch the dashboard:
python app.py
3 commits
Python
98.8%
An end-to-end multi-source data ingestion, speech-to-text (ASR), document OCR parsing, and text synthesis platform built with Python, PyTorch, NVIDIA NeMo, Hugging Face VLMs, and Gradio.
Kutub Automator automates the collection, document parsing, transcription, cleaning, and indexing of complex media streams and historical book scans.
Telegram Channel Crawler (modules/telegram_scraper.py):
Telethon for crawling target Telegram channels and groups.Facebook Video Downloader (modules/fb_downloader.js):
modules/transcription_engine.py):
stt_ar_fastconformer_hybrid_large_pc_v1.0 model.pydub, soundfile, and librosa.PyMuPDF PDF Renderer (modules/unlimited_ocr.py):
fitz (PyMuPDF).Baidu Unlimited-OCR VLM Integration:
Unlimited-OCR Vision-Language Model locally in bfloat16 precision.TPSTextStreamer for real-time live token streaming to the Gradio web UI.<|det|>...<|/det|>), reference markers, and cleans page breaks.Qari Arabic OCR Engine (modules/qari_ocr.py):
modules/higgs_tts.py):
Gradio Web Dashboard (app.py):
Windows & System Stability Patches:
WinError 32 file locking on Windows.graph TD
subgraph Ingestion Layer
A1[Telegram Channels] -->|Telethon Scraper| B[Workspace Download Cache]
A2[Facebook Videos] -->|Node.js Downloader| B
A3[Local PDF Scans & Audio] --> B
end
subgraph Processing Engine
B -->|Audio Streams| C[Audio Splitter & Resampler]
C --> D[NVIDIA NeMo FastConformer ASR]
B -->|PDF Documents| E[PyMuPDF Renderer]
E -->|Page Images| F[Baidu Unlimited-OCR VLM]
E -->|Page Images| G[Qari OCR Engine]
F --> H[Live Streamer Patch]
end
subgraph Post-Processing & Output
D --> I[SRT Subtitles / Timed Logs]
H --> J[Regex Tag Stripper & Text Normalizer]
G --> J
J --> K[Clean Text / Dataset Export]
K -->|Optional| L[Higgs TTS Speech Synthesis]
end
subgraph User Interface
M[Gradio Multi-Tab Web UI] <--> Ingestion Layer
M <--> Processing Engine
M <--> Post-Processing & Output
end
nemo_toolkit[asr]), Unsloth, Baidu Unlimited-OCR.fitz), Pillow, OpenCV, Librosa, SoundFile, Pydub.Clone the repository:
git clone https://github.com/h-yassin-ai/Al-Kutub-Automator.git
cd Al-Kutub-Automator
Install dependencies:
pip install -r requirements.txt
Configure environment:
Create a .env file in the project root:
TG_API_ID=your_telegram_api_id
TG_API_HASH=your_telegram_api_hash
TG_PHONE=your_phone_number
HF_TOKEN=your_huggingface_token
Launch the dashboard:
python app.py
3 commits
Python
98.8%