Skip to content

Audio/Video to Subtitle converter with translation.

License

Notifications You must be signed in to change notification settings

HighDoping/AV2Sub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AV2Sub

Audio/Video to Subtitle converter with translation.

Features

  • Transcribe audio/video to srt
  • Translate srt to bilingual srt
  • Transcribe API: Whisper(OpenAI,whisper-timestamped-WebAPI), DeepSpeech&Coqui STT via AutoSub-WebAPI
  • Translate API: DeepL, DeepL Pro, Google

Requirements

  • ffmpeg

Usage

For OpenAI and DeepL API, enter your API key in Settings tab.

For AutoSub-WebAPI and whisper-timestamped-WebAPI, set up the container and enter the URL. e.g. http://localhost:5000/transcribe

Select the audio/video file, set target language and style of subtitles, then click Process.

For dev

Install

poetry install

Run

python .\av2sub\gui.py

TODO

  • Audio splitting
  • Google APIs
  • Better timestamp accuracy with other model with whisper-timestamped
  • Contextual translation
  • GUI translation

GUI compile

python -m nuitka gui.py --standalone --include-data-files="licenses.md=licenses.md" --include-data-files="about.md=about.md" --enable-plugin=pyside6 --include-module=pygments --disable-console

Disclaimer

According to Article 8 of Berne Convention for the Protection of Literary and Artistic Works:

Authors of literary and artistic works protected by this Convention shall enjoy the exclusive right of making and of authorizing the translation of their works throughout the term of protection of their rights in the original works.

Please comply with the copyright laws in the jurisdiction where you intend to create, distribute, or use translations as well as the terms and conditions of APIs used.

About

Audio/Video to Subtitle converter with translation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages