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

I dont know how to short the subtitle lines #22

Open
echopan opened this issue Dec 27, 2024 · 1 comment
Open

I dont know how to short the subtitle lines #22

echopan opened this issue Dec 27, 2024 · 1 comment

Comments

@echopan
Copy link

echopan commented Dec 27, 2024

my folder structure:

path/to/files
├── 01.m4b
├── 01.txt
├── 02.m4b
├── 02.txt
├── 03.m4b
└── 03.txt

I use this command:
subplz sync --device cuda --language en --overwrite-cache --stable-ts --word-timestamps --max-words-per-line 8 --max-line-width 40 --max-line-count 2 -d "path/to/files",
the output .srt are as same as the subplz sync --device cuda --language en --overwrite-cache --word-timestamps -d "path/to/files".

part of generated subtitle:

10
00:00:25,360 --> 00:00:26,360
the floors,

11
00:00:26,360 --> 00:00:27,572
the ceilings.

12
00:00:28,380 --> 00:00:33,980
Broad black smears crossed the blistered paints and gilt of once-bright murals,

13
00:00:33,980 --> 00:00:39,072
soot overlaying crumbling friezes of men and animals which seemed to have attempted to walk

14
00:00:39,072 --> 00:00:41,332
before the madness grew quiet.

I actually dont want lines too long as 12 and 13, I want to split it to around 3~6 words for one timestamp, could I make it using subplz?

And i dont know how it analyzes the .epub, when I use the whole book and separate chapter audios, every '.srt' is the whole book content. maybe it ask a strict '.epub' chapter style I guess. But the SyncCache/*.subs seem to be right. That's why I split the whole book into separate chapters (it contains more than 10 books of this series).

@echopan
Copy link
Author

echopan commented Dec 27, 2024

I guess I know why some sentences are so long, cause the speaker did speak this long and didnt stop to taking a break. I just listened to a piece of the audio and found it's not that bad with these subtitles.

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

1 participant