# Bundled diary readings and guiding narration Twenty-eight fixed recordings accompany the story. Mara’s five original diary readings use `bf_emma` (British female); twenty-three guiding passages use a distinct `bm_george` narrator (British male). These are **synthetic recordings rendered during development**, not human voice-actor recordings. The app plays bundled files through just_audio, with no speech model, Android reader, runtime synthesis or download. The original PCM takes remain unchanged as prefixes of the expanded masters. Twenty-four recordings now append the complete new story passages in the narrator voice; the other four recordings remain unchanged. - `scripts.json`: canonical scripts with stable IDs, speaker, voice and rendering speed. Each complete script matches the displayed original text plus its continuation. Expanded records retain `baseText`, `continuation` and `continuationSpeaker`; the renderer records the original frame count and PCM checksum. The window and match memory keep Mara’s diary take, then switch to the narrator for the added present-day action. - `wav/`: reviewable 24 kHz mono PCM16 WAV masters. - `manifest.json`: model/voice checksums, generator versions, exact scripts, passage timings and WAV and FLAC checksums. - `assets/audio/narration_*.wav`: bundled PCM16 copies, byte-identical to the WAV masters. - `assets/audio/narration_*.flac`: archival lossless exports, excluded from the APK. - `licenses/`: Kokoro ONNX wrapper MIT and model Apache 2.0 licenses. Mara uses generation speed 0.82 and the narrator 0.88, with short fades, paragraph pauses and peak normalization. The in-app speed control changes playback speed without changing pitch. Pausing preserves the actual recording position; leaving a page releases playback. Readings autoplay 3 seconds after opening a narrated page. Page turns, backgrounding, Play, Pause and Stop cancel the pending start. Folded notes wait until unfolded. ## Regeneration Generator: [kokoro-onnx](https://github.com/thewh1teagle/kokoro-onnx). Model and voice data: `kokoro-v1.0.onnx` and `voices-v1.0.bin` from its [model-files-v1.0 release](https://github.com/thewh1teagle/kokoro-onnx/releases/tag/model-files-v1.0). See the upstream [voice guide](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/VOICES.md). Use Python 3.12, dependencies pinned in `requirements.txt` and ffmpeg. Keep model data outside the app project. Edit the canonical `scripts.json` text before regenerating: ```sh python scripts/render_narration.py --model /path/to/kokoro-v1.0.onnx --voices /path/to/voices-v1.0.bin # Append new narrator passages while preserving existing PCM takes: python scripts/render_narration.py --model /path/to/kokoro-v1.0.onnx --voices /path/to/voices-v1.0.bin --append-continuations python3 scripts/check_narration_assets.py # Regenerate only guiding narration, preserving Mara’s existing takes: python scripts/render_narration.py --model /path/to/kokoro-v1.0.onnx --voices /path/to/voices-v1.0.bin --speaker Narrator ``` The check requires only Python’s standard library and ffmpeg. It verifies script freshness, cue coverage, master format, checksums and runtime WAV/master equality and bit-identical WAV/FLAC decoding. It also rejects Flutter device-reader imports in app code. Listen to new takes before accepting them; automated checks cannot judge performance or pronunciation. A future actor recording can replace the masters and bundled assets while preserving stable page IDs. Update passage timings and checksums with that recording; never silently change the written script to fit audio. Playback uses PCM WAV because the connected Huawei API 26 tablet advanced the FLAC clock without creating an AudioTrack. WAV produces an active, unmuted 24 kHz mono PCM media track through the speaker, and the user confirmed audible speech. The release smoke test now checks that mixer track, in addition to pause/resume and elapsed time. The seven cottage narrator recordings cover the lantern/key/compass entries and memories and the closing threshold leaf. Sixteen more cover the before/after passages for campaign levels 4–11. Puzzle instruction leaves remain unvoiced. On-screen labels distinguish “Mara · diary reading” from “Narrator · recorded story”; playback starts after a 3-second page delay and stops on navigation or backgrounding. Cue highlighting follows both displayed passages. One Play/Pause/Resume/Replay control covers the whole page, and the speaker label follows per-cue voice changes. Original PCM-prefix hashes are checked alongside full-track checksums.