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

+75
View File
@@ -0,0 +1,75 @@
1
00:00:22,822 --> 00:00:25,640
Ahh-ahh, sanctus, ahh...
2
00:00:25,640 --> 00:00:31,739
Shadows fade before the light that rises in the east
3
00:00:31,739 --> 00:00:37,759
Every troubled storm is stilled and every sorrow ceased
4
00:00:37,759 --> 00:00:44,119
Through the tall stained-glass windows morning beams descend
5
00:00:44,119 --> 00:00:50,560
Shining on a quiet road where broken hearts can mend
6
00:00:50,560 --> 00:00:58,740
Peace be with you, weary soul, lay your burden down
7
00:00:58,740 --> 00:01:05,079
Where the silver rivers flow beyond the sleeping town
8
00:01:05,079 --> 00:01:11,459
Lift your eyes unto the hills where golden angels sing
9
00:01:11,459 --> 00:01:18,579
Rest beneath the gentle shelter of a shining wing
10
00:01:21,159 --> 00:01:27,180
Like a bell across the valley ringing clear and true
11
00:01:27,180 --> 00:01:33,439
Every dawn is bringing back a promise made anew
12
00:01:34,180 --> 00:01:40,060
Walk into the quiet light and leave the dark behind
13
00:01:40,060 --> 00:01:46,439
There is grace in every breath for all of humankind
14
00:01:48,400 --> 00:01:54,640
Peace be with you, weary soul, lay your burden down
15
00:01:54,640 --> 00:02:01,019
Where the silver rivers flow beyond the sleeping town
16
00:02:01,019 --> 00:02:07,480
Lift your eyes unto the hills where golden angels sing
17
00:02:07,480 --> 00:02:15,300
Rest beneath the gentle shelter of a shining wing
18
00:02:15,300 --> 00:02:25,520
Peace be with you... forevermore.
19
00:02:26,479 --> 00:02:27,879
Amen, ahh...