I want to do the following:
- User logging in to my website
- He click "upload video" and choose the video from the disc
- Video is uploaded to cloud
- Once it's uploaded, the speech from video (no matter what langueage it is) should be converted to text and then translated to english.
- File with captions should be saved so that user can pick them from the "Subtitles" menu in video player.
The tricky point is 4) because I don't know which software could I use to generate subtitles from video and translate them to english (and possibly other languages). I found Whisper AI
from OpenAI
and I'm wondering whether I should use this one or something else. Also, it's a Python library and I'm wondering how can I actually call this when upload finished. I'm using NextJS. ,,
There is a package written in nodejs at https://www.npmjs.com/package/openai