Rearrange landscape puzzle layout
Landscape leaves now lay the puzzle out in two columns: the whole grid keeps one column (square, sized to the page) with the heading, area totals, hint/undo and notes beside it, and the leaf navigation folds into a single row. The game leaf also keeps its actions in a compact bottom bar, so the board and controls are visible without scrolling. - Leaf gains an optional wideBody used on landscape pages. - Board gains maxWidth, defaulting to the previous 350. - Split the puzzle body into area, board and note builders so both layouts share the same controls. - Add a landscape widget regression test and document the layout. This snapshot also carries the pending 2.0.2 notebook work already in the tree: read-ahead restore, bundled PCM WAV narration assets, the audio consistency comment, version 2.0.2+11, and the related unit, integration and script updates.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
||||
"pageId": "cottage.dedication",
|
||||
"resource": "narration_cottage_dedication",
|
||||
"text": "My dear,\n\nI never could keep a proper diary. I wrote down the tides, the things that needed mending, and whatever I was afraid I might forget.\n\nYou will find a little of all three in here. Take your time. There is no right way to turn these pages.\n\nWith all my love,\nGran",
|
||||
"file": "narration_cottage_dedication.flac",
|
||||
"file": "narration_cottage_dedication.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 441184,
|
||||
@@ -22,13 +22,15 @@
|
||||
"endMs": 17783,
|
||||
"text": "You will find a little of all three in here. Take your time. There is no right way to turn these pages.\n\nWith all my love,\nGran"
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_dedication.flac",
|
||||
"wavSha256": "c99d66f356537aec9983c22ba7a22466e0a947e3823db7e6f4c266f0fbc8ed24"
|
||||
},
|
||||
"cottage.window": {
|
||||
"pageId": "cottage.window",
|
||||
"resource": "narration_cottage_window",
|
||||
"text": "The wind has finally gone quiet. I have put the blue cup by the window, where you always liked to sit.\n\nThe latch still sticks. Lift it a little before you turn it. Some things on this island need a gentle hand, not a stronger one.\n\nIf you arrive after dark, there is something in the little drawer beside the hearth.",
|
||||
"file": "narration_cottage_window.flac",
|
||||
"file": "narration_cottage_window.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 499104,
|
||||
@@ -51,13 +53,15 @@
|
||||
"endMs": 20196,
|
||||
"text": "If you arrive after dark, there is something in the little drawer beside the hearth."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_window.flac",
|
||||
"wavSha256": "08f483f48e3c79f6294aa30ba5c676d0ad536235f609577ceb567f35d3ddf72c"
|
||||
},
|
||||
"cottage.match.memory": {
|
||||
"pageId": "cottage.match.memory",
|
||||
"resource": "narration_cottage_match_memory",
|
||||
"text": "You used to insist on lighting the evening lantern yourself. I held the matchbox, and you held your breath.\n\nOnce, you asked how such a little flame could help anyone out at sea.\n\nIt cannot, I told you. But it can help us find the next light.\n\nI kept one dry match in a tin after that. Just in case.",
|
||||
"file": "narration_cottage_match_memory.flac",
|
||||
"file": "narration_cottage_match_memory.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 506848,
|
||||
@@ -85,13 +89,15 @@
|
||||
"endMs": 20519,
|
||||
"text": "I kept one dry match in a tin after that. Just in case."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_match_memory.flac",
|
||||
"wavSha256": "9972d88c8c6a93ac78528a96f4320f8f422009ba2fed78da8bc0f85ce92a840f"
|
||||
},
|
||||
"cottage.folded.note": {
|
||||
"pageId": "cottage.folded.note",
|
||||
"resource": "narration_cottage_folded_note",
|
||||
"text": "If the tide has covered the causeway, use the little boat by the harbour steps. The knot looks worse than it is.\n\nTake the lantern. When you reach the bell, ring twice. I will know it is you.\n\nAnd do not let the tea go cold while you are deciding.\n\nLove, Gran",
|
||||
"file": "narration_cottage_folded_note.flac",
|
||||
"file": "narration_cottage_folded_note.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 425888,
|
||||
@@ -114,13 +120,15 @@
|
||||
"endMs": 17145,
|
||||
"text": "And do not let the tea go cold while you are deciding.\n\nLove, Gran"
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_folded_note.flac",
|
||||
"wavSha256": "cc8992b78771101daeb79b91b01702043cbeff3781b772492a0d43cfb6a02ead"
|
||||
},
|
||||
"cottage.lantern.sketch": {
|
||||
"pageId": "cottage.lantern.sketch",
|
||||
"resource": "narration_cottage_lantern_sketch",
|
||||
"text": "Your grandfather repaired this handle with a piece of wire and far too much confidence. I wrapped the join so it would not catch your fingers.\n\nPeople notice the flame first. I tend to notice the things that let us carry it.",
|
||||
"file": "narration_cottage_lantern_sketch.flac",
|
||||
"file": "narration_cottage_lantern_sketch.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 366944,
|
||||
@@ -138,7 +146,9 @@
|
||||
"endMs": 14689,
|
||||
"text": "People notice the flame first. I tend to notice the things that let us carry it."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_lantern_sketch.flac",
|
||||
"wavSha256": "53dd694b9933f94bcda72582d0c6b1bb5b656898a73c87d66ecfa0874ba3a29d"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,9 @@ Five fixed readings accompany the opening notebook leaves. They are **synthetic
|
||||
|
||||
- `scripts.json`: canonical non-puzzle text loaded directly by the Flutter story pages.
|
||||
- `wav/`: reviewable 24 kHz mono PCM16 WAV masters.
|
||||
- `manifest.json`: model/voice checksums, generator versions, exact scripts, passage timings and FLAC checksums.
|
||||
- `assets/audio/narration_*.flac`: lossless bundled copies.
|
||||
- `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.
|
||||
|
||||
The voice uses generation speed 0.82, 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 never autoplay on entry.
|
||||
@@ -21,6 +22,8 @@ python scripts/render_narration.py --model /path/to/kokoro-v1.0.onnx --voices /p
|
||||
python3 scripts/check_narration_assets.py
|
||||
```
|
||||
|
||||
The check requires only Python’s standard library and ffmpeg. It verifies script freshness, cue coverage, master format, checksums 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.
|
||||
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.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"pageId": "cottage.dedication",
|
||||
"resource": "narration_cottage_dedication",
|
||||
"text": "My dear,\n\nI never could keep a proper diary. I wrote down the tides, the things that needed mending, and whatever I was afraid I might forget.\n\nYou will find a little of all three in here. Take your time. There is no right way to turn these pages.\n\nWith all my love,\nGran",
|
||||
"file": "narration_cottage_dedication.flac",
|
||||
"file": "narration_cottage_dedication.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 441184,
|
||||
@@ -34,13 +34,15 @@
|
||||
"endMs": 17783,
|
||||
"text": "You will find a little of all three in here. Take your time. There is no right way to turn these pages.\n\nWith all my love,\nGran"
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_dedication.flac",
|
||||
"wavSha256": "c99d66f356537aec9983c22ba7a22466e0a947e3823db7e6f4c266f0fbc8ed24"
|
||||
},
|
||||
"cottage.window": {
|
||||
"pageId": "cottage.window",
|
||||
"resource": "narration_cottage_window",
|
||||
"text": "The wind has finally gone quiet. I have put the blue cup by the window, where you always liked to sit.\n\nThe latch still sticks. Lift it a little before you turn it. Some things on this island need a gentle hand, not a stronger one.\n\nIf you arrive after dark, there is something in the little drawer beside the hearth.",
|
||||
"file": "narration_cottage_window.flac",
|
||||
"file": "narration_cottage_window.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 499104,
|
||||
@@ -63,13 +65,15 @@
|
||||
"endMs": 20196,
|
||||
"text": "If you arrive after dark, there is something in the little drawer beside the hearth."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_window.flac",
|
||||
"wavSha256": "08f483f48e3c79f6294aa30ba5c676d0ad536235f609577ceb567f35d3ddf72c"
|
||||
},
|
||||
"cottage.match.memory": {
|
||||
"pageId": "cottage.match.memory",
|
||||
"resource": "narration_cottage_match_memory",
|
||||
"text": "You used to insist on lighting the evening lantern yourself. I held the matchbox, and you held your breath.\n\nOnce, you asked how such a little flame could help anyone out at sea.\n\nIt cannot, I told you. But it can help us find the next light.\n\nI kept one dry match in a tin after that. Just in case.",
|
||||
"file": "narration_cottage_match_memory.flac",
|
||||
"file": "narration_cottage_match_memory.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 506848,
|
||||
@@ -97,13 +101,15 @@
|
||||
"endMs": 20519,
|
||||
"text": "I kept one dry match in a tin after that. Just in case."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_match_memory.flac",
|
||||
"wavSha256": "9972d88c8c6a93ac78528a96f4320f8f422009ba2fed78da8bc0f85ce92a840f"
|
||||
},
|
||||
"cottage.folded.note": {
|
||||
"pageId": "cottage.folded.note",
|
||||
"resource": "narration_cottage_folded_note",
|
||||
"text": "If the tide has covered the causeway, use the little boat by the harbour steps. The knot looks worse than it is.\n\nTake the lantern. When you reach the bell, ring twice. I will know it is you.\n\nAnd do not let the tea go cold while you are deciding.\n\nLove, Gran",
|
||||
"file": "narration_cottage_folded_note.flac",
|
||||
"file": "narration_cottage_folded_note.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 425888,
|
||||
@@ -126,13 +132,15 @@
|
||||
"endMs": 17145,
|
||||
"text": "And do not let the tea go cold while you are deciding.\n\nLove, Gran"
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_folded_note.flac",
|
||||
"wavSha256": "cc8992b78771101daeb79b91b01702043cbeff3781b772492a0d43cfb6a02ead"
|
||||
},
|
||||
"cottage.lantern.sketch": {
|
||||
"pageId": "cottage.lantern.sketch",
|
||||
"resource": "narration_cottage_lantern_sketch",
|
||||
"text": "Your grandfather repaired this handle with a piece of wire and far too much confidence. I wrapped the join so it would not catch your fingers.\n\nPeople notice the flame first. I tend to notice the things that let us carry it.",
|
||||
"file": "narration_cottage_lantern_sketch.flac",
|
||||
"file": "narration_cottage_lantern_sketch.wav",
|
||||
"sampleRate": 24000,
|
||||
"channels": 1,
|
||||
"frames": 366944,
|
||||
@@ -150,7 +158,9 @@
|
||||
"endMs": 14689,
|
||||
"text": "People notice the flame first. I tend to notice the things that let us carry it."
|
||||
}
|
||||
]
|
||||
],
|
||||
"flacFile": "narration_cottage_lantern_sketch.flac",
|
||||
"wavSha256": "53dd694b9933f94bcda72582d0c6b1bb5b656898a73c87d66ecfa0874ba3a29d"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user