Repository navigation
Published timelines get their voiceover as one MP3 - #48
Merged
Merged
Conversation
…, the page plays it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…th the editors' key Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…tore, resumable, on several computers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
… with several runs side by side Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
… voice there (Make it your own to change it) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…with a short pause; music under the voice quieter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…stands on the dot of the entry in front Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…goes on Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
✅ Deploy Preview for ubiquitous-smakager-593fec ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…s a month Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
…ears on the year pill The time line at the foot wrote years in the bar's four characters (660B, 14G for 13.8 billion years ago); it now writes them as the rest of the page does (660 BCE, 13.8B years ago), with room kept so a year never runs into the next name, on the page and in the film. The year pill named the room the road leaves before the first entry (801 BCE for Japan, whose first entry is 660 BCE); it now names the entries' own first and last years. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
The strip placed entries by their left edge with a guessed shift, so the marker stood about 7 px before the dot, and before play it stood short of the first. Entries are now placed by the middle of their dot as measured, the marker stands on the first dot before play, rests on a card's dot while the camera rests there (and play waits for the line), and glides to the next dot only while the camera moves. The marker also follows the strip when the bar on the left steps away for play. The film's marker starts on the first dot too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ
5 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A published timeline's voiceover is now one MP3, laid out the same way as a wiki view's:
voiceovergets a new action,record. It has the server voice say every line as an MP3, several at a time in one request. It then joins the lines frame by frame with 0.35 s of silence between them and records where each line starts. There is no re-encoding:supabase/functions/voiceover/mp3.js,joinMp3().views/<username>/<slug>/<voice>/<v>.mp3. Older files for that timeline are deleted, and the words and cues are kept beside the wiki's. The page saves the answer on the row asvoice.audio, so every reader plays from the one file.Why
He asked for it: the user timelines should be consistent with the wiki (one file, same address shape), and the per-line files were "complicated". MP3 frames stand on their own, so joining them costs almost no CPU, which matters within an edge function's limits.
Kind
site/)Sources
Screenshots
Nothing on the page looks different.
Checklist
node scripts/build.mjs --checkprints0 errorsnode --testpasses (138, including a new test for joining MP3s)idof an existing entry or viewLICENSE(MIT for code, CC BY-NC-SA 4.0 for content)Not tested yet:
response_format: "mp3".Joining was checked with ffmpeg on two test MP3s: no decode errors, the lengths were right, and the silences landed where the cues say.
The function must be redeployed with the new
mp3.jsfile besideindex.ts.Generated by Claude Code