Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transfer the word-level timestamped json to srt? #50

Closed
lj739 opened this issue Jul 14, 2023 · 4 comments
Closed

How to transfer the word-level timestamped json to srt? #50

lj739 opened this issue Jul 14, 2023 · 4 comments

Comments

@lj739
Copy link

lj739 commented Jul 14, 2023

How to transfer the word-level timestamped json to srt?

@jordimas
Copy link
Collaborator

If you use --word_timestamps, the srt will follow the word level timestamps and show it in the subtitles accordingly.

@lj739
Copy link
Author

lj739 commented Jul 15, 2023

I do used --word_timestamps, what I got is a srt file and a json file, the srt file just had timestamp on sentence, the json file had word timestamp but i don't know how to use this file.

@lj739
Copy link
Author

lj739 commented Jul 15, 2023

I didn't use --highlight words, no word time code in the srt file, a json file created instead.

@jordimas
Copy link
Collaborator

SRT is a subtitle format. See: https://docs.fileformat.com/video/srt/

The goal of the SRT format is to provide subtitles to videos while JSON is to share information with applications.

The --word_timestamps impact of in STR is that the time stamps are more precise. If you need the data, use the JSON.

Behaviour is the same than the original OpenAI client.

If you have a problem regarding this tool, feel free to open a bug report. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants