https://github.com/follgad/subtitle-sync
https://github.com/follgad/subtitle-sync
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/follgad/subtitle-sync
- Owner: FOLLGAD
- Created: 2023-11-09T18:42:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T13:13:47.000Z (about 2 years ago)
- Last Synced: 2024-04-14T03:39:12.837Z (about 2 years ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Subtitle sync (very WIP)
Add timed subtitles to a video, which highlights the current word in the subtitle.
- Whisper to transcribe audio to text with word timestamps.
- Chatgpt to correct punctuation and capitalization.
## Prerequisites
- Whisper
- https://github.com/parlr/hanzi-pinyin-font (for Chinese pinyin subtitles)
- openai
## Usage
```bash
$ python main.py input.mp4 --whisper_data data.json out.mp4
```
## Why?
Why not