Skip to content

abhinayjangde/subtitle-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Video Subtitle Generator

This Docker image generates subtitles for audio files in different languages using OpenAI's Whisper model.

How to setup

  1. Build the Docker Image
docker build -t subgen .
  1. Run the Docker Container
docker run -it -v <path/to/audio/folder>:/app subgen

This mounts the folder containing your audio files to the /app directory inside the Docker container. Once inside, you can use ls to list all files and folders.

  1. Activate the Virtual Environment - Inside the Docker container, activate the Python virtual environment by running
source /opt/venv/bin/activate
  1. -enerate Subtitles - Use the Whisper model to generate subtitles. For example:
whisper sample.wav --language Hindi --task translate
  1. Output - After the process completes, subtitle files like .srt and .vtt will be available in your mounted folder. Check your local directory for these files.

This project uses the Whisper AI model developed by OpenAI.

Pull requests are always welcom :)

About

Video Subtitle Generator

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors