m1guelpf / yt-whisper

Using OpenAI's Whisper to automatically generate YouTube subtitles
MIT License
1.36k stars 138 forks source link

Can I use this to transcribe a local video? #19

Closed aichr closed 1 year ago

aichr commented 2 years ago

I don't find a command for doing this? Can we have this as an option?

ztjhz commented 2 years ago

You can use the whisper model directly to transcribe a local video: https://github.com/openai/whisper

GitHub
GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision
Robust Speech Recognition via Large-Scale Weak Supervision - GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision
aichr commented 2 years ago

@ztjhz Thanks, but the .vtt and .srt support is not there. I think it's not hard to fork this repo and add this functionality myself. just curious whether it makes sense to have a native local video support by this repo.

aichr commented 2 years ago

My fork which support local video files for anyone who is interested

https://github.com/aichr/yt-whisper

GitHub
GitHub - aichr/yt-whisper: Using OpenAI's Whisper to automatically generate YouTube subtitles
Using OpenAI's Whisper to automatically generate YouTube subtitles - GitHub - aichr/yt-whisper: Using OpenAI's Whisper to automatically generate YouTube subtitles
m1guelpf commented 1 year ago

You can also use the following project for local videos (with support for vtt and srt), and optionally embed the subtitles in the video.

https://github.com/m1guelpf/auto-subtitle

GitHub
GitHub - m1guelpf/auto-subtitle: Automatically generate and overlay subtitles for any video.
Automatically generate and overlay subtitles for any video. - GitHub - m1guelpf/auto-subtitle: Automatically generate and overlay subtitles for any video.