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

+67
View File
@@ -0,0 +1,67 @@
1
00:00:28,220 --> 00:00:29,980
Clickety-clack upon the track, the green train starts to roll
2
00:00:29,420 --> 00:00:30,620
Leaving all the city gray behind the tunnel hole
3
00:00:30,620 --> 00:00:31,820
Forehead pressed against the glass, I watch the fields go by
4
00:00:31,820 --> 00:00:33,020
Golden wheat and windmills waving underneath the sky
5
00:00:33,020 --> 00:00:34,220
Take me where the spring wind blows across the open blue
6
00:00:34,220 --> 00:00:38,359
Ten miles of wildflowers blooming just for me and you
7
00:00:38,359 --> 00:00:42,679
Every station has a name I've never heard before
8
00:00:42,679 --> 00:00:47,600
Soon the scent of salty air will meet us at the shore
9
00:00:57,620 --> 00:01:01,479
Strangers sharing oranges and stories in the seat
10
00:01:01,920 --> 00:01:06,680
Sunlight dancing in the aisle around my dangling feet
11
00:01:06,680 --> 00:01:11,500
Postcards in my backpack waiting for a stamp and pen
12
00:01:11,500 --> 00:01:16,239
To tell the people back at home I'm coming back again
13
00:01:16,239 --> 00:01:21,140
Take me where the spring wind blows across the open blue
14
00:01:21,140 --> 00:01:26,340
Ten miles of wildflowers blooming just for me and you
15
00:01:26,340 --> 00:01:30,659
Every station has a name I've never heard before
16
00:01:30,659 --> 00:01:35,599
Soon the scent of salty air will meet us at the shore
17
00:01:46,820 --> 00:01:48,359
Look, there is the sea...