Mkaify/VocloneTranslate

0

stars

4

commits

Python

primary language

Jul 2, 2026

updated

README

๐ŸŽ™๏ธ VoCloneTranslate

Automated End-to-End Audio-Visual Speech Translation & Few-Shot Urdu Voice Cloning Pipeline

Developed as a Final Year Project (FYP) within the Department of Software Engineering at the University of Engineering and Technology, Taxila.

VoCloneTranslate redefines automated localized media dubbing by replacing flat, robotic text-to-speech outputs with an expressive, chained neural pipeline that dynamically preserves individual speaker characteristics across language boundaries while matching video frame visemes.


๐Ÿš€ Core Architectural Pipeline & Workflow

The platform processes input video media streams through five distinct asynchronous processing blocks:

  1. Audio Extraction Subsystem (FFmpeg): Asynchronously demuxes raw video containers to isolate high-fidelity audio streams.
  2. Optimized Automatic Speech Recognition (OpenAI Whisper): Decodes source English frames to map raw text strings alongside exact word-level time boundaries.
  3. Neural Machine Translation Service (Meta NLLB-200): Resolves English-to-Urdu grammatical inversion (SVO to SOV syntax alignment) using specialized language target tokens.
  4. Few-Shot Voice Cloning Engine (XTTS-v2): Quantizes and applies acoustic features extracted from a brief source reference audio clip to condition expressive Urdu speech generation.
  5. Generative Visual Synchronization Head (Wav2Lip): Morphs local face frame boundaries frame-by-frame to achieve precise phonetic mouth matching, eliminating structural dubbing lag entirely.

๐Ÿ“‚ Repository Architecture

โ”œโ”€โ”€ app.py                 # Primary FastAPI Gateway Router & Interface Endpoints
โ”œโ”€โ”€ base_en_model.py       # Core Translation Orchestration & Structural Configs
โ”œโ”€โ”€ xtts_worker.py         # Asynchronous Execution Hub & Subprocess Pipeline Workers
โ”œโ”€โ”€ requirements.txt       # Environment Dependency Matrix Blueprint
โ””โ”€โ”€ .gitignore             # Strict Local Cache and Heavy Checkpoint Exclusion Mapping

๐Ÿ“ฅ Project Assets & Model Checkpoints

Due to git file boundary thresholds (100 MB ceiling), the large production model weights and specialized validation datasets are tracked externally via dedicated deep learning hosting channels:

โ— Production Model Checkpoints: โž” Download Fine-Tuned XTTS-v2 Model Weights โ— Validation Media Dataset: โž” Access Customized Urdu Speech Datasets Repository

๐Ÿ“Š Empirical Performance & Resource Optimization

Engineered specifically to execute within tightly constrained hardware infrastructure envelopes:

โ— Memory Constraints: Implemented targeted model quantization layers (int8_float16 for ASR / FP16 for translation weights), restricting the maximum operational footprint down to a clean ~5.3 GB VRAM. This allows the complete pipeline to run on a single standard NVIDIA T4 GPU. โ— Execution Latency Profile (60-Second Video Clip Benchmark):

  • Audio Extraction (FFmpeg): 0.8s

  • Speech Recognition (OpenAI Whisper): 11.2s

  • Neural Machine Translation (NLLB-200): 5.4s

  • Voice Cloning Synthesis (XTTS-v2): 10.1s

  • Audio-Visual Rendering (FFmpeg Multiplexer): 1.2s

  • Total Core Processing Time: 28.7 Seconds

๐Ÿ› ๏ธ Local Environment Deployment

  1. Clone the Codebase & Initialize Dependencies:

    git clone https://github.com/Mkaify/VocloneTranslate.git
    cd VocloneTranslate
    pip install -r requirements.txt
    
    
  2. Download Asset Weights: Ensure the downloaded model files from Hugging Face are placed into the local directory parameters defined in your application environment file (.env).

  3. Launch Production API Service:

    uvicorn app:app --host 0.0.0.0 --port 8000 --reload
    

๐Ÿ‘ฅ Engineering & Evaluation Credentials

โ— Institution: University of Engineering and Technology, Taxila (UET Taxila) โ— Department: Software Engineering Department โ— Project Identifiers: Registration No: 22-SE-02 (Muhammad Kaif ur Rehman) & Project Evaluation Team โ— Project Supervisor: Engr. Dr. Marriam Nawaz โ— Final Evaluation Schedule: July 2, 2026

Contributors

Mkaify

4 commits

Mkaify/VocloneTranslate

0

stars

4

commits

Python

primary language

Jul 2, 2026

updated

README

๐ŸŽ™๏ธ VoCloneTranslate

Automated End-to-End Audio-Visual Speech Translation & Few-Shot Urdu Voice Cloning Pipeline

Developed as a Final Year Project (FYP) within the Department of Software Engineering at the University of Engineering and Technology, Taxila.

VoCloneTranslate redefines automated localized media dubbing by replacing flat, robotic text-to-speech outputs with an expressive, chained neural pipeline that dynamically preserves individual speaker characteristics across language boundaries while matching video frame visemes.


๐Ÿš€ Core Architectural Pipeline & Workflow

The platform processes input video media streams through five distinct asynchronous processing blocks:

  1. Audio Extraction Subsystem (FFmpeg): Asynchronously demuxes raw video containers to isolate high-fidelity audio streams.
  2. Optimized Automatic Speech Recognition (OpenAI Whisper): Decodes source English frames to map raw text strings alongside exact word-level time boundaries.
  3. Neural Machine Translation Service (Meta NLLB-200): Resolves English-to-Urdu grammatical inversion (SVO to SOV syntax alignment) using specialized language target tokens.
  4. Few-Shot Voice Cloning Engine (XTTS-v2): Quantizes and applies acoustic features extracted from a brief source reference audio clip to condition expressive Urdu speech generation.
  5. Generative Visual Synchronization Head (Wav2Lip): Morphs local face frame boundaries frame-by-frame to achieve precise phonetic mouth matching, eliminating structural dubbing lag entirely.

๐Ÿ“‚ Repository Architecture

โ”œโ”€โ”€ app.py                 # Primary FastAPI Gateway Router & Interface Endpoints
โ”œโ”€โ”€ base_en_model.py       # Core Translation Orchestration & Structural Configs
โ”œโ”€โ”€ xtts_worker.py         # Asynchronous Execution Hub & Subprocess Pipeline Workers
โ”œโ”€โ”€ requirements.txt       # Environment Dependency Matrix Blueprint
โ””โ”€โ”€ .gitignore             # Strict Local Cache and Heavy Checkpoint Exclusion Mapping

๐Ÿ“ฅ Project Assets & Model Checkpoints

Due to git file boundary thresholds (100 MB ceiling), the large production model weights and specialized validation datasets are tracked externally via dedicated deep learning hosting channels:

โ— Production Model Checkpoints: โž” Download Fine-Tuned XTTS-v2 Model Weights โ— Validation Media Dataset: โž” Access Customized Urdu Speech Datasets Repository

๐Ÿ“Š Empirical Performance & Resource Optimization

Engineered specifically to execute within tightly constrained hardware infrastructure envelopes:

โ— Memory Constraints: Implemented targeted model quantization layers (int8_float16 for ASR / FP16 for translation weights), restricting the maximum operational footprint down to a clean ~5.3 GB VRAM. This allows the complete pipeline to run on a single standard NVIDIA T4 GPU. โ— Execution Latency Profile (60-Second Video Clip Benchmark):

  • Audio Extraction (FFmpeg): 0.8s

  • Speech Recognition (OpenAI Whisper): 11.2s

  • Neural Machine Translation (NLLB-200): 5.4s

  • Voice Cloning Synthesis (XTTS-v2): 10.1s

  • Audio-Visual Rendering (FFmpeg Multiplexer): 1.2s

  • Total Core Processing Time: 28.7 Seconds

๐Ÿ› ๏ธ Local Environment Deployment

  1. Clone the Codebase & Initialize Dependencies:

    git clone https://github.com/Mkaify/VocloneTranslate.git
    cd VocloneTranslate
    pip install -r requirements.txt
    
    
  2. Download Asset Weights: Ensure the downloaded model files from Hugging Face are placed into the local directory parameters defined in your application environment file (.env).

  3. Launch Production API Service:

    uvicorn app:app --host 0.0.0.0 --port 8000 --reload
    

๐Ÿ‘ฅ Engineering & Evaluation Credentials

โ— Institution: University of Engineering and Technology, Taxila (UET Taxila) โ— Department: Software Engineering Department โ— Project Identifiers: Registration No: 22-SE-02 (Muhammad Kaif ur Rehman) & Project Evaluation Team โ— Project Supervisor: Engr. Dr. Marriam Nawaz โ— Final Evaluation Schedule: July 2, 2026

Contributors

Mkaify

4 commits

Languages

Python

65.8%

JavaScript

34.2%