Soundify is a Python desktop application that converts Arabic text from images into spoken audio. It offers two OCR recognition modes in a single unified interface:
Full Text (Tesseract): For recognizing sentences, paragraphs, or full pages of Arabic text
Character (CNN): For recognizing single Arabic characters using a custom-trained neural network
Features
Dual OCR Modes: Switch between Tesseract (full text) and CNN (single character) recognition
Image Input Options:
Live camera feed capture
File upload from local storage
Text-to-Speech: Automatically converts recognized text to speech (MP3)
Modern GUI: Dark/Light theme toggle with customtkinter
Soundify - Arabic OCR & Text-to-Speech
Soundify is a Python desktop application that converts Arabic text from images into spoken audio. It offers two OCR recognition modes in a single unified interface:
Features
Project Structure
soundify.py: Main application with unified Tesseract & CNN modesutils_tesseract.py: Tesseract OCR integration functionsutils_cnn.py: CNN model prediction and character mappingmodel_training_notebook.ipynb: Jupyter notebook for CNN model trainingmodel/arabic-OCR.h5: Pre-trained CNN model (72MB)assets/: GUI icons and imagesrequirements.txt: Python dependenciesInstallation
Prerequisites
Installation Steps
Clone the repository:
Install Python dependencies:
This will install:
customtkinter- Modern GUI frameworkopencv-python- Camera and image processingPillow- Image manipulationpygame- Audio playbackpytesseract- Tesseract OCR wrappergTTS- Google Text-to-Speechtensorflow- CNN model (large package ~330MB)Download the CNN Model (Required for Character mode):
arabic-OCR.h5(72MB) is not included in the repositorymodel/directory:Code/model/arabic-OCR.h5Usage
Running the Application
Mode Selection
Use the mode switcher at the bottom-left of the window:
Controls
Workflow
Troubleshooting
“Tesseract is not installed or not found in PATH”
“CNN Model or Tensorflow not found”
pip install tensorflowCamera not working
No audio playback
test.mp3is being generated in the project directorypip install pygameDependencies
All dependencies are listed in
requirements.txt:Credits
Author: 3bsalam-1
Last Updated: December 2025