Skip to content

feat(recorder): voice-over with ElevenLabs; skill makes guides from Playwright scenarios - #7

Merged
djdevpro merged 2 commits into
mainfrom
feat/recorder-voiceover
Nov 20, 2026
Merged

djdevpro merged 2 commits into
mainfrom
feat/recorder-voiceover

Conversation

@djdevpro

Copy link
Copy Markdown
Owner

Summary

  • Recorder: voice-over. New addVoiceOver(guide, options) reads each story line with ElevenLabs (with-timestamps endpoint, eleven_v4_turbo, voice YxrwjAKoUKULGd0g8K9Y by default) and writes audio and words on each line, in the format player 0.5.0 already plays and captions.
    • One voice/<fingerprint>.mp3 (+ .json with length and words) per line; the fingerprint follows from text, voice, model and format, so a line already read is never billed again. Same fingerprint as the TechniApp voix.ts it ports, so its existing sounds are reused with folder: 'voix'.
    • Words come from the per-character timestamps (proportional split without them); a lone punctuation mark stays with the word before.
    • Steps lengthen where a line plus an 800 ms pause outlasts them; following lines move with them (addedMs).
    • Key from ELEVENLABS_API_KEY or apiKey; without it, new lines stay silent (silent). Unused sounds are pruned (only fingerprint-named files). Errors are RecorderErrors (VOICE_OVER_FAILED, STORY_OFF_STEP, INVALID_ARGUMENT), never with the key.
    • Injectable fetch and baseUrl; README section and minor changeset.
  • Skill. The main way is now a headless Playwright scenario that builds the guide with the recorder API, gives it its voice-over and publishes it to the public folder. The command line stays for one-off guides; the desktop studio is described as coming and is not used unless asked. The teaching rules are kept (signed-in home page, open then visit each screen, markers beside the words, 16:9, no personal data, a few zooms), with a long, teaching voice line per step. Patch changeset.

Tests

  • vitest run packages/recorder: 35 passed, 15 new in test/voice-over.test.ts, all with a simulated fetch (no network).
  • tsc --noEmit on the recorder and prettier --check pass.

🤖 Generated with Claude Code

@djdevpro
djdevpro merged commit d00d7a6 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant