tts-voice-creator-clone-and.../static
mARTin-B78 b64baf2d0b Script Rehearser: library with save / load / import / export
Storage: IndexedDB ('reh-library' DB, 'rehearsals' store).
Blobs (recorded mic audio) stored natively; no base64 overhead.

Library panel (Phase 1):
- List of saved rehearsals sorted by last update
- Each row: character-colour avatars, title, progress bar,
  line count, recorded-clip count, date
- Active record highlighted in accent colour
- Open / Export .reh / Delete per-row buttons
- Import .reh button at the top

Transport bar (Phase 3):
- Save button (updates existing record if savedId set, else creates new)
- Export button (downloads current state as .reh JSON file)

Phase 4 (session complete):
- Save to library and Export .reh buttons

Data format (.reh file):
- JSON with version=1, title, script text, cast map, backend, lineIndex
- clips serialized with audio as base64 strings (mime + b64 fields)
- clipsFromJson restores Blob objects on import

Behaviour:
- Parsing a brand-new script resets savedId → safe to save as new record
- loadRecord() restores script, cast, lineIndex, clips and jumps to Phase 2
- renderLibraryList() called on init, after save, after delete, after import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 20:32:24 +02:00
..
js Script Rehearser: library with save / load / import / export 2026-05-31 20:32:24 +02:00
sections Script Rehearser: library with save / load / import / export 2026-05-31 20:32:24 +02:00
vendor Add skeleton loading, self-host assets, fix LLM empty response 2026-05-29 17:28:42 +02:00
app.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
index.html Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
loader.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
nav.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
style.css Script Rehearser: library with save / load / import / export 2026-05-31 20:32:24 +02:00