post: generating subtitles for songs that ship without timestamps
Deploy / build (push) Successful in 30s

Tutorial on turning untimed AI-generated audio into LRC + SRT: align ASR word
timestamps against the KNOWN lyrics (SequenceMatcher) instead of trusting a
transcript, then a governor that rejects impossible anchors, refills runs by
unit-proportional duration, and enforces a 1.2 s minimum line gap.

Ships 18 English songs (342 subtitle lines, mean anchor coverage 0.96, 9/18
fully anchored) with synced lyrics plus downloadable .srt per track. Documents
both player bugs and the headless-Chrome numeric probe that finally caught them.
This commit is contained in:
hoelee committed 2026-10-20 22:09:34 +08:00
1 parent cf327211df
commit 92f38184fb
20 files changed
+2737

No files matched your search

+87
View File
@@ -0,0 +1,87 @@
1
00:00:08,059 --> 00:00:10,640
Attention please! Captain on the deck!
2
00:00:10,640 --> 00:00:13,919
Sofa is my pirate ship, the carpet is the sea
3
00:00:13,919 --> 00:00:17,519
Pillow fort is waiting there for teddy bear and me
4
00:00:17,519 --> 00:00:20,960
Put a paper triangle upon my curly head
5
00:00:20,960 --> 00:00:25,339
No one has to take a nap or go to sleep in bed!
6
00:00:25,679 --> 00:00:31,079
Left turn! Right turn! Watch out for the shark!
7
00:00:31,079 --> 00:00:35,880
Wait—that's just the fluffy dog barking in the dark!
8
00:00:36,780 --> 00:00:38,420
Aye, aye, Captain Marshmallow!
9
00:00:38,420 --> 00:00:42,039
Sailing where the candy breezes blow!
10
00:00:42,039 --> 00:00:45,560
Cookies in the treasure chest, chocolate on the map
11
00:00:45,560 --> 00:00:50,740
Give a little salute and a double-double clap! (Clap-clap!)
12
00:00:50,740 --> 00:00:53,380
We rule the living room today!
13
00:00:56,340 --> 00:00:59,600
Homework is forbidden by the royal pirate law
14
00:00:59,600 --> 00:01:03,119
Every single citizen must draw a dinosaur!
15
00:01:03,119 --> 00:01:07,280
More pudding for the afternoon, and juice inside the cup
16
00:01:07,280 --> 00:01:12,780
When the clock strikes dinner time, we'll eat the treasure up!
17
00:01:13,799 --> 00:01:15,280
Aye, aye, Captain Marshmallow!
18
00:01:15,280 --> 00:01:19,000
Sailing where the candy breezes blow!
19
00:01:19,000 --> 00:01:22,459
Cookies in the treasure chest, chocolate on the map
20
00:01:22,459 --> 00:01:26,819
Give a little salute and a double-double clap! (Clap-clap!)
21
00:01:26,819 --> 00:01:30,260
We rule the living room today!
22
00:01:33,000 --> 00:01:34,859
Mission accomplished! Yay!