Skip to content

mhdsabah/ml-video-translation

Repository files navigation

Machine translated voice-over generator for single speaker videos.

Description

This project is an application of speech recognition. You will be able to get ouput with trasnlated voice overs in your preffered language for the videos. Does not work with every kind of videos, paticular videos which has single human speaker (like ted talks,speech or presentation).

Features

  • Uses VOSK open source speech recognition toolkit
  • Supports all recognisable language by vosk
  • Uses EasyNMT library for translating the textfile
  • Works offline

For windows


1. First create a virtual environment

virtualenv venv

.\venv\Script\activate

2. Clone the github repo to directory

3. Download following files and place it models folder

Vosk Model - Choose any English model(for better accuracy:: vosk-model-en-us-aspire-0.2)

Punctuator model - Download 'Demo-Europarl-EN.pcl' for English language

4. Using pip

pip install -r requirements.txt

5. Start the flask server

python first.py


Tools used


Common issues

  • If there is 'windows file not found ' error , then you need to install ffmpeg. Use this link For installing ffmpeg
  • Inorder for translator to work offline you have to download the entire translator file.

About

Translate videos to your preffered language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published