tts-voice-creator-clone-and.../static/js
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
..
ai-backends.js Persist engine container names and card URLs to server settings 2026-05-29 15:17:02 +02:00
benchmark.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
conversation.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
engines.js Persist engine container names and card URLs to server settings 2026-05-29 15:17:02 +02:00
generation.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
init.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
integrations.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
rehearser.js Script Rehearser: library with save / load / import / export 2026-05-31 20:32:24 +02:00
routing.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
settings.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
stt.js UX: faster load, skeleton fix, About cleanup, name hint, Connect Apps docs 2026-05-31 19:19:20 +02:00
tts-preview.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
utils.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
voice-clone.js UX: faster load, skeleton fix, About cleanup, name hint, Connect Apps docs 2026-05-31 19:19:20 +02:00
voice-inspector.js Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
voice-library.js Script Rehearser: A4 script view, transport controls, character avatars 2026-05-31 20:27:44 +02:00
voice-sources.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00