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

Single word subtitles #80

Open
Tc554 opened this issue May 7, 2024 · 1 comment
Open

Single word subtitles #80

Tc554 opened this issue May 7, 2024 · 1 comment

Comments

@Tc554
Copy link

Tc554 commented May 7, 2024

Currently its generating subtitles sentence after sentence and I want to make it word by word is it possible with this package?

@Nishan666
Copy link

Nishan666 commented May 8, 2024

It seems like you're looking to change the format of subtitle generation from sentence-by-sentence to word-by-word. This might be to enhance subtitle accuracy or for some other specific requirement. While the current package may not support word-by-word generation directly, there are alternative approaches you can explore.

Firstly, to improve accuracy, using larger models like medium or large could be beneficial. These models often have a better understanding of context and can generate more accurate subtitles.

However, if you specifically need word-by-word generation, you'll likely need to handle the generation process differently. Word-by-word generation wouldn't typically fit into .srt or .vtt file formats, as those formats are structured around sentences and timestamps. Instead, you'd likely output to a plain text (.txt) file.

To achieve word-by-word generation, you could generate the subtitles as sentences as you're currently doing, then post-process the output to split each sentence into individual words. This could be done using a Python script or an online converter. There are tools available online that can convert .srt files to plain text (.txt) format, and you could then modify the content to be word-by-word.
https://www.happyscribe.com/subtitle-tools/convert-srt-to-word

Happy Scribe
Free online SubRip (.srt) to Microsoft Word (.docx) subtitle converter. No signup required.

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