Repository navigation
Default voiceovers for every wiki view, one MP3 a view - #47
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
✅ Deploy Preview for ubiquitous-smakager-593fec ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…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
ashrawan
marked this pull request as ready for review
November 28, 2026 05:10
… 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
ashrawan
pushed a commit
that referenced
this pull request
Nov 28, 2026
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.
Requested by Shrawan · project thread
What this changes
Every one of the 231 wiki views now has a ready-made voiceover in Heart: one MP3 for each view, kept in the public store, plus a list of where each card's line starts and ends. When play starts, the page downloads that one file and plays each card's part of it, for every reader, signed in or not. Nothing has to be made in the browser and nothing goes through the server voice.
data/community/wiki/voices/<view>.json: a script for every view (Dinosaurs already had one, Japan was written first for review, and the other 229 were written from each view's own entries), withaudio(voice, version, cues) filled in.tools/voice/make.mjshas Kokoro say every line, joins the lines into one MP3 with ffmpeg, and writes the timings into the voices file.VOICE_THREADSlets several runs share one computer.tools/voice/publish.mjs,tools/voice/all.mjsand the new functionvoice-storesend the MP3 to the store along with the words. Each version is a new file, the old one is removed, and only editors can do this.audioand puts it into the view file. Insite/voice.jsthe lines are cut from the one file, and if the file can't be fetched the page falls back to the usual way of making lines.Most of the sound was made on a Mac's GPU with mlx-audio (the same Kokoro voice, phonemized by misaki), and 6 views were made in the cloud with kokoro-js. Both produce the same file layout, version hash and timings format, but a few words may sound slightly different between the two.
Why
Asked for: a default voiceover for every wiki view, with the audio made once and served from Cloudflare.
Kind
site/)Sources
Screenshots
Nothing new is drawn on the page. The change is the sound and the subtitle at the foot.
To try it: open any wiki view, for example
/wiki/japanor/wiki/sports, and press play.Checklist
node scripts/build.mjs --checkprints0 errorsnode --testpassesidof an existing entry or viewLICENSE(MIT for code, CC BY-NC-SA 4.0 for content)Checked: all 231 views are in the store, and for the spot-checked files (Sports, Ancient Egypt, Nepal) the length matches the timings. The function
voice-storeis deployed. The editor-key path insupabase/functions/voiceoverandscripts/voices.mjsis in this branch but not deployed, since the scripts were written here instead.🤖 Generated with Claude Code
https://claude.ai/code/session_01MCuMSjEB5X8rPj3mTFiKDZ