This is a simple application that automatically adds subtitles to a video in the specified language using Go and Python. It utilizes the OpenaAI's Whisper system for transcription and LibreTranslate for translation. I completed this project within one day.
Before you can use this application, you need to ensure that you have the following dependencies installed:
-
Clone this repository to your local machine:
git clone https://github.com/FFC12/autosub.git cd autosub
-
Install Go dependencies:
go get -d ./...
-
It will automatically create a Python virtual environment and packages that needed.
-
Place the video file you want to add subtitles to in the project directory.
-
Run the application:
go run main.go
-
Open your web browser and go to
http://localhost:3000/upload-form
. You will see a simple web interface.
-
Upload your video file, select the target language for subtitles, and click the "Upload" button.
-
The application will process the video, transcribe the audio using Whisper, translate the transcription using LibreTranslate, and then generate subtitles.
- Once the process is complete, you can download the video with subtitles.
If you'd like to contribute to this project or report issues, please feel free to create a pull request or issue on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
This application is provided as-is and without warranty. Use it responsibly and ensure you have the necessary rights to use the video and content generated by this application.