Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Start screen: Ben-Gurion's 1948 recording behind a "Play the recording" button (#465)

Eyal Golan72e2aeea7c02
diff --git a/ASSETS.yaml b/ASSETS.yaml
index 6c0492bc3..0b6931a9d 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -212,6 +212,13 @@ rules:
licence: Copernicus-DEM
source: "tools/terrain_bake.py from the Copernicus DEM GLO-30-derived heightmap (unity/Assets/StreamingAssets/map/heightmap.*): AO, curvature, sky-view (Map/terrain_bake.png), coast distance (Map/coast.png) and the AO copy (Map/ao.png); the terrain water's mesh samples (Map/terrain_water.bytes, Editor TerrainWaterBake from the same heightmap); attribution in NOTICE"
status: verified
+ # --- Ben-Gurion's 1948 recording on the start screen (docs/declaration-recording.md; docs/oss/DECISIONS.md D-R) ---
+ - glob: "unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav"
+ licence: Israel State Archives terms of use
+ source: "Israel State Archives, item ISA-Collections-Recordings-00113hj, 'העתק מן המקור של הקלטת ההכרזה על הקמת מדינת ישראל, כולל טקס החתימה', recorded by Ralph Hellinger of Radio Doctor (the archive's description), as published on the archive's YouTube channel (https://www.youtube.com/watch?v=K5Q6Mrv4fGw, uploaded 2023-05-22). Downloaded 2026-10-13 as format 251 (Opus 48 kHz stereo in WebM, 22,845,078 B, sha256 0d464f4ad06181364fe5bed86baeabb741429965c83694456be0db1261878cb8). The excerpt 468.01-477.30 s, David Ben-Gurion reading «אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת ישראל», cut by ffmpeg stream copy (its 465 Opus packets are the download's, byte for byte; Ogg, 147,033 B, sha256 1e3d01c89b674cffad0658b6d4f87c6503debb37af0757be4c16b25f668b29a2), then decoded to 16-bit PCM WAV with no other processing (the commands are in docs/declaration-recording.md): 48 kHz stereo, 9.29 s, 1,784,396 B, sha256 24e7bc48f5d0134bbe28f0f81b3668235398e3a4bfd83d54aa8650aeae2da370 (pinned in DeclarationRecording.Sha256 and its test)"
+ status: owner-verify
+ credit: "Recording: Ralph Hellinger, Israel State Archives"
+ note: "Played only from the start screen's 'Play the recording' button, over the still painting, with the declaration's own Hebrew and English text as captions and the credit on screen; never automatic. Rights basis and open questions: docs/oss/DECISIONS.md D-R (the terms' commercial clause, a copy taken from the archive's YouTube channel, the creator's rights, the US status)."
# --- Decision-card illustration loops: silent AI clips behind the Illustration switch (docs/event-videos.md; owner ruling D-V) ---
# Made by tools/encode_event_videos.py from promo shots that are not in the repository (path and SHA-256 per row in
# unity/Assets/Resources/EventVideos/event-videos.yaml). Rights: owner ruling D-V, 2026-10-13 (docs/oss/DECISIONS.md, merged in #449):
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 93a13a38d..458a6da27 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,12 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
goldens (`Statecraft.Sim.Reference`, D-A7) is test policy that no game mode or UI reaches. New scenario golden
`scenario-mvp-absorb-first`. The real game is unchanged: `hash1950`, `hash1952`, `smoke5` and the two 1948 scenarios do
not move.
+- The start screen can play David Ben-Gurion's reading of the sentence that proclaims the state, from the recording
+ of the ceremony of 14 May 1948 (Israel State Archives). It plays only from a "Play the recording" button, over the
+ still painting. The declaration's own Hebrew and English words show as captions once the audio is heard, and the
+ credit "Recording: Ralph Hellinger, Israel State Archives" is on screen. It never plays on its own, never on Continue
+ or New Game, and not in automated runs. A slow or failed load says so. The file is a cut of the archive's own upload,
+ decoded to WAV with no other processing (1.8 MB), and fetched only when asked for.
- Decision videos, phase 2 (#434 follow-up). On 11 decision cards an Illustration switch over the photograph plays a
short, silent AI-generated loop. It is labelled "AI-generated illustration" in place of the credit and carries a small
burned-in bilingual label. The photograph always shows first; nothing plays until the player asks, and the choice holds
diff --git a/LICENSING.md b/LICENSING.md
index c8cef4e8a..c941f359e 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -14,6 +14,7 @@ Different parts of this repository are under different licences. Where a file is
| In-engine captures | `promo/final/09`, `10`, `docs/images/build-*.jpg`, `docs/images/social-preview.jpg`, `spikes/m0/evidence/*.jpg`, `spikes/m0/evidence/*.txt` (logs) | CC BY 4.0. They show the Copernicus-derived terrain; see below. |
| Portraits | `unity/Assets/UI/Portraits/`, `promo/ref/people/`, `promo/ref/*-sheet.jpg` | Public-domain photographs from Wikimedia Commons, CC0 files, and Meitar Collection photographs under CC BY 4.0 (credits in [NOTICE](NOTICE)). Per-file sources are in `content/people.yaml` and `promo/CREDITS.md`. |
| Event-card photographs | `unity/Assets/UI/EventImages/*.jpg` | Archival photographs from Wikimedia Commons, each under its own licence: CC BY 4.0 (Meitar Collection, National Library of Israel; credits in [NOTICE](NOTICE)), CC0 1.0 (Nationaal Archief) or public domain (US National Archives). All are adapted (graded and cropped). Per-file records in `ASSETS.yaml`; the mapping `event-images.yaml` beside them is CC BY 4.0 like the other UI assets. |
+| Ben-Gurion's 1948 recording | `unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav` | An excerpt of the recording of the ceremony of 14 May 1948, Israel State Archives item ISA-Collections-Recordings-00113hj, under the Israel State Archives terms of use. It is a stream-copy cut of the archive's upload, decoded to PCM WAV with no other processing. Credit "Recording: Ralph Hellinger, Israel State Archives" ([NOTICE](NOTICE)). Its open questions are decision D-R in `docs/oss/DECISIONS.md` (`ASSETS.yaml`, owner-verify). |
| Fonts | `unity/Assets/UI/Fonts/` | EB Garamond, [SIL Open Font License 1.1](unity/Assets/UI/Fonts/OFL.txt); Frank Ruhl Libre (`FrankRuhlLibre/`), [SIL Open Font License 1.1](unity/Assets/UI/Fonts/FrankRuhlLibre/OFL.txt) |
| Terrain heightmap | `unity/Assets/StreamingAssets/map/heightmap.*`, `content/map/hexes.json` (elevations) | Derived from Copernicus GLO-30 under the Copernicus DEM licence. Required notice: "produced using Copernicus WorldDEM-30 (c) DLR e.V. 2010-2014 and (c) Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved" |
| Precipitation grid | `content/map/precip_bio12.*` | CHELSA V2.1, CC0 1.0 (Karger et al. 2017, 2021; see `tools/README.md`) |
diff --git a/NOTICE b/NOTICE
index 21ceccea9..b810718fd 100644
--- a/NOTICE
+++ b/NOTICE
@@ -141,3 +141,9 @@ Builds also contain YamlDotNet, Copyright (c) Antoine Aubry and contributors, MI
the Unity runtime, used under the Unity Terms of Service. The Unity runtime includes the ICU data file that
UI Toolkit's advanced text generator uses (Hebrew on the start screen): Copyright (c) 2016 and later Unicode, Inc. and
others, Unicode License v3 (https://www.unicode.org/license.txt).
+
+Ben-Gurion's reading of the Declaration (unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav): an excerpt
+of the recording of the ceremony of 14 May 1948, recorded by Ralph Hellinger of Radio Doctor, Israel State Archives, item
+ISA-Collections-Recordings-00113hj, used under the Israel State Archives terms of use
+(https://catalog.archives.gov.il/en/terms-of-use/). Credit shown with it: "Recording: Ralph Hellinger, Israel State
+Archives".
diff --git a/README.he.md b/README.he.md
index f728e7eb3..1b5c44898 100644
--- a/README.he.md
+++ b/README.he.md
@@ -104,7 +104,7 @@ https://github.com/user-attachments/assets/56571db8-446b-444b-8db9-fce57dac53a7
## שימוש בבינה מלאכותית
-הפרויקט נבנה בסיוע נרחב של בינה מלאכותית. קוד נכתב עם סוכני קוד ונבדק בבדיקות ובסקירות קוד; תמונות הקונספט והפרומו הן תוצר של בינה מלאכותית, וכך גם הציור במסך הפתיחה, סמל הלשונית של דף המשחק צויר בסיועה, וטקסט האירועים נוסח בסיועה וכל עובדה בו נבדקת מול המקור המצוטט. הפורטרטים הם צילומים בנחלת הכלל או ברישיונות CC0 ו־CC BY 4.0 (הקרדיטים ב־NOTICE), בכרטיסי האירועים יש צילומי ארכיון, ובחלקם מתג "איור" מציג לולאה קצרה ושקטה שנוצרה בבינה מלאכותית ומסומנת ככזו, ואין עדיין סאונד. דבר אינו נוצר בזמן אמת במהלך המשחק.
+הפרויקט נבנה בסיוע נרחב של בינה מלאכותית. קוד נכתב עם סוכני קוד ונבדק בבדיקות ובסקירות קוד; תמונות הקונספט והפרומו הן תוצר של בינה מלאכותית, וכך גם הציור במסך הפתיחה, סמל הלשונית של דף המשחק צויר בסיועה, וטקסט האירועים נוסח בסיועה וכל עובדה בו נבדקת מול המקור המצוטט. הפורטרטים הם צילומים בנחלת הכלל או ברישיונות CC0 ו־CC BY 4.0 (הקרדיטים ב־NOTICE), בכרטיסי האירועים יש צילומי ארכיון, ובחלקם מתג "איור" מציג לולאה קצרה ושקטה שנוצרה בבינה מלאכותית ומסומנת ככזו. אין סאונד שנוצר בבינה מלאכותית; מסך הפתיחה יכול להשמיע את ההקלטה המקורית של בן־גוריון קורא את ההכרזה (1948, ארכיון המדינה). דבר אינו נוצר בזמן אמת במהלך המשחק.
## רישיון
diff --git a/README.md b/README.md
index a4cca6564..45cd93872 100644
--- a/README.md
+++ b/README.md
@@ -140,7 +140,7 @@ This project is built with heavy AI assistance, disclosed here using itch.io's c
- **Code:** written with AI coding agents and reviewed through tests and review gates.
- **Graphics:** the concept and promo images in `promo/` are AI-generated, as is the start screen's painting, and the web page's tab icon was drawn with AI help. The game's terrain comes from real elevation data. The portraits are public-domain, CC0 or CC BY 4.0 photographs (credited in NOTICE), and the event cards use archival photographs; on some cards an Illustration switch plays a short, silent AI-generated loop, labelled as such.
- **Text:** event and content text was drafted with AI, and every fact is checked against the cited source.
-- **Sound:** none yet.
+- **Sound:** no AI sound. The start screen can play the original 1948 recording of Ben-Gurion reading the Declaration (Israel State Archives).
Nothing is generated live while you play.
diff --git a/docs/declaration-recording.md b/docs/declaration-recording.md
new file mode 100644
index 000000000..76fda1e83
--- /dev/null
+++ b/docs/declaration-recording.md
@@ -0,0 +1,94 @@
+# Ben-Gurion's 1948 recording on the start screen
+
+The start screen can play David Ben-Gurion reading the sentence that proclaims the state, from the recording of the
+ceremony of 14 May 1948. The owner asked for it; the rights basis and its open questions are decision D-R in
+[`docs/oss/DECISIONS.md`](oss/DECISIONS.md).
+
+## The source
+
+- **Item:** Israel State Archives, ISA-Collections-Recordings-00113hj, «העתק מן המקור של הקלטת ההכרזה על הקמת מדינת
+ ישראל, כולל טקס החתימה» (a copy from the original recording of the declaration, with the signing ceremony).
+ - The archive's own description, read on 2026-10-13 from the description of its YouTube upload below (saved by
+ yt-dlp in the download's `.info.json`), says it was «הוקלט ע"י ראלף הלינגר בעל אולפן רדיו דוקטור» (recorded by Ralph
+ Hellinger, owner of the Radio Doctor studio). The same description gives the catalogue link
+ http://www.archives.gov.il/archives/#/Archive/0b07170680034d89/File/0b07170681096567.
+ - The English Wikipedia article "Recording of the Israeli Declaration of Independence" (revision 1306487371)
+ describes it as the archive's CD of the Kol Yisrael radio broadcast, "related to Hans and Ralf Hellinger from the
+ 'Radio Doctor' company". That is a different recording from the Tslil disc recording.
+- **The copy used:** the archive's own upload on its YouTube channel, "ארכיון המדינה IsraelArchives" (channel
+ `UCuZpTg6vY1QHBVZ95V5Z-lA`).
+ - The video is https://www.youtube.com/watch?v=K5Q6Mrv4fGw, «הכרזת המדינה», uploaded 2023-05-22, 1444 s long.
+ - Downloaded on 2026-10-13 with yt-dlp 2026.08.19 as YouTube audio format 251: Opus, 48 kHz stereo, in WebM.
+ - The download is 22,845,078 bytes, sha256 `0d464f4ad06181364fe5bed86baeabb741429965c83694456be0db1261878cb8`.
+ - The archive's catalogue page could not be read by script (the server answers 403), so the channel's copy is the
+ archive's own publication that could be fetched and hashed.
+- **Why not the Wikimedia Commons copy.** Commons has a different copy of the same broadcast, a 44.1 kHz mono Vorbis
+ file 841.97 s long, re-encoded by an uploader.
+ - Aligning the two by their waveforms puts the archive's 468.01 s at Commons 393.0 s. The Commons copy starts about
+ 75 s later.
+ - The archive's own upload is one step closer to the archive, and the terms of use (below) are the archive's.
+
+## The excerpt
+
+- **The cut:** 468.01 to 477.30 s of the download, made by stream copy, so no audio is decoded or re-encoded:
+
+ ```
+ ffmpeg -i isa_00113hj_K5Q6Mrv4fGw.webm -ss 468.01 -to 477.30 -vn -map 0:a:0 -c:a copy -map_metadata -1 \
+ -avoid_negative_ts make_zero -fflags +bitexact -flags:a +bitexact declaration.ogg
+ ```
+
+ - The cut is Ogg Opus, 147,033 bytes, sha256 `1e3d01c89b674cffad0658b6d4f87c6503debb37af0757be4c16b25f668b29a2`.
+ - Its 465 Opus packets were compared one by one (`ffprobe -show_packets -show_data_hash sha256`). They are
+ byte-identical, consecutive packets of the download, covering its 468.014 to 477.294 s.
+- **The decode:** Unity's Web player could not load the Ogg Opus cut ("fetch: no clip" in Chrome), so it is decoded
+ to 16-bit PCM WAV, with no other processing:
+
+ ```
+ ffmpeg -i declaration.ogg -map 0:a:0 -c:a pcm_s16le -map_metadata -1 -fflags +bitexact -flags:a +bitexact \
+ declaration-1948-isa-00113hj.wav
+ ```
+
+ - Both commands were run with ffmpeg 9.0.1 on macOS (arm64). Two runs of each give identical files.
+- **What ships:** `unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav`, 48 kHz stereo 16-bit PCM,
+ 9.29 s, 1,784,396 bytes, sha256 `24e7bc48f5d0134bbe28f0f81b3668235398e3a4bfd83d54aa8650aeae2da370`.
+ - The hash is pinned in `DeclarationRecording.Sha256` and checked by a test, which proves the committed file has
+ not changed. Re-running the two commands on the same download with the same ffmpeg gives the same bytes.
+ - There is no normalising, no denoising, no fade and no re-encoding to a lossy format.
+- **Listen-check:** an offline speech-to-text pass (faster-whisper "small", Hebrew, word timestamps) heard three
+ phrases:
+ - 0.00-2.00 s «אנו מחרזים בזאת». The model misspelt «מכריזים».
+ - 2.60-6.40 s «על הקמת מדינה יהודית בארץ ישראל».
+ - 6.92-8.76 s «היא מדינת ישראל».
+
+ So the excerpt holds exactly «אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת ישראל», with no other
+ word. The speaker was not identified by machine.
+
+## On the start screen
+
+- **A button.** "Play the recording" sits under the source line. Beside it is the credit "Recording: Ralph Hellinger,
+ Israel State Archives", which names the creator and the archive as the terms ask.
+- **Pressing it:**
+ - While the file loads, the button reads "Loading the recording…". Pressing it again cancels.
+ - When the audio is actually heard, the button becomes "Stop the recording" and the captions show.
+ - The press ends with the message "The recording could not be played." when:
+ - the fetch fails;
+ - no data arrives for 8 s (a slow link that keeps receiving is never cut off);
+ - the file has not arrived after 60 s in all;
+ - it is not decoded within 5 s of arriving;
+ - or the audio has not started 3 s after it was asked to play.
+ - The end of the clip is when it was playing and now is not, so a slow first start never cancels itself.
+ - Stopping releases the clip.
+- **When it plays:**
+ - It never plays by itself, and never on Continue or New Game.
+ - It stops when the start screen closes.
+ - It plays over the still painting only.
+- **Captions.** The sentence shows in a dark strip above the panel, as the declaration's own texts in
+ `docs/sources/declaration-1948`. The leading ellipsis marks a sentence quoted from its middle.
+ - In Hebrew, in Frank Ruhl Libre, right to left: «…אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת
+ ישראל.»
+ - In English: "…HEREBY DECLARE THE ESTABLISHMENT OF A JEWISH STATE IN ERETZ-ISRAEL, TO BE KNOWN AS THE STATE OF
+ ISRAEL."
+ - `StartScreenTests.Quoted` checks both against the source files.
+- **Automated runs** skip the start screen (`StartScreenPresenter.Skipped`). Without it the recording is never built,
+ and the stylesheet keeps the button's row hidden.
+- **Boot:** the 1.8 MB file is not in the build's data. It is fetched only when asked for.
diff --git a/docs/oss/DECISIONS.md b/docs/oss/DECISIONS.md
index 64cdea0c9..39a18aacb 100644
--- a/docs/oss/DECISIONS.md
+++ b/docs/oss/DECISIONS.md
@@ -29,4 +29,5 @@ are already public. If a check fails, the file is removed from the tip with the
- [ ] D-A The 1949 armistice lines (`content/map/armistice*`, `ASSETS.yaml` row owner-verify). Sources: the four General Armistice Agreements (UNTS vol. 42) and their annexed maps, which are UN documents with symbols and so not copyrighted (UN Administrative Instruction ST/AI/189/Add.9/Rev.2, para. 2; Commons {{PD-UN-doc}}, {{PD-UN-map}}); the Syria map is drawn on a 1:50,000 base of the Service Geographique des FFL, of which nothing is taken but the agreement's own line and zone (drawn by the parties and the UN); the Egypt line uses the Survey of Palestine sheet "Gaza" for three positions (the Wadi Hasi mouth, Deir Suneid, the highway), a Government of Palestine work under D-B; the Lebanon line is the D-B Mandate frontier. Check on 2026-10-11 (factual, not legal advice). Rulings (controller, owner-delegated, and the owner, 2026-10-11): (1) the source plan as built is approved: the agreements and their annexed maps; IBS 46 (1965) only as a named cross-check; (2) Jordan is traced from the low-resolution UNISPAL copy of the signed map 1 (3119 x 8630 px), every feature `source_quality: low_res_scan` and labelled low-accuracy, to be replaced from a full-resolution scan; the Commons "own work" copy ("File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg") is never used without established provenance; Jerusalem (map 2), the no-man's-lands and Mount Scopus are recorded gaps; (3) the 1950 modus vivendi line (S/1471, a signed UN document; sheet 2 from the UN Treaty Collection) is its own feature from 22 Feb 1950, and the 1949 Egypt line south of Gaza stays undrawn; (4) the DMZ part names stand; (5) the sensitivity review is the controller's, after the staff review: entries stay `draft`; (6) the true-polyline overlay is #237, not built now; (7) the Sinai frontier beyond Gaza is not labelled as the Egypt line. Open for the owner: whether a full-resolution Jordan scan is requested from the archives (an outward action). Display, as built: each front switches on its agreement's date (recorded per front in the sub-district layer, `Subdistricts1948.FrontReplaced`); from then its zones are drawn over the sub-districts and the label and info panel name its lines, while the sub-district bands stay as the base (the lines leave gaps). Conventions recorded here: the Jordan line A stages are Art. VI.3 deadlines ('within five / seven / fifteen weeks') and each stretch is shown from its deadline, the actual handover dates not researched; the agreements' own titles ('Egyptian-Israeli', 'Lebanese-Israeli', 'Hashemite Jordan Kingdom-Israel', 'Israeli-Syrian' General Armistice Agreement) are shown in the 'Egypt-Israel' style, a paraphrase; the DMZ part names mix Arabic and Hebrew forms (Tell el Qadi and El Hamma beside Mishmar HaYarden and Ein Gev). Map bases (only the agreements' lines are taken, positions redrawn, no image copied; US copyright does not reach facts): the Syria map's 1:50,000 Service Geographique des FFL base; Jordan map 1's Survey of Palestine 1:250,000 (1946) base, a Government of Palestine work (D-B); the Gaza sheet (D-B); S/1471's base sheets, Survey of Palestine 1:20,000 (rev. 1946) reprinted with a Survey of Israel imprint, an Israeli government reprint of about 1949-50, outside D-B, with a possible US URAA term in the drawing. The Jordan control points' coordinates (Wikidata, CC0; Wikipedia, CC BY-SA) are facts used only to georeference, kept in the MIT tool source.
- [x] D-M ElevenLabs Music is licensed for commercial use. Decided (owner, 2026-10-13): "it is", in reply to the note that the design spec said the music is not cleared for commercial use. This covers the ElevenLabs Music cues in the promo videos (demo 1 `music_v2_5`, the demo2 cues) and their use in marketing such as a store trailer. The spec's two lines are amended to point here. Factual note: the ElevenLabs Music Terms allow commercial use on Creator and higher plans, except film, TV, radio and Studio Games, with indie games under their own §4.7; the owner's confirmation stands for the plan used.
- [x] D-V AI video clips in the game: silent Veo 3.1 clips (generated through ElevenLabs) and Seedance 2.0 clips (generated through Dreamina), copied from the promo shot folders and re-encoded, unchanged in what they show, for the decision cards (#434). Decided (owner, 2026-10-13): "no need to check, just use them". The decision covers every build, free, commercial and paid; D-D found that Dreamina's terms restrict commercial use and D5 covered images only, and the owner accepts this. `ASSETS.yaml` rows for the clips cite this line.
+- [ ] D-R Ben-Gurion's 1948 recording on the start screen (`unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav`, PR #465; `ASSETS.yaml` row owner-verify; `docs/declaration-recording.md`): a 9.29 s excerpt (a stream-copy cut, decoded to PCM WAV) of Israel State Archives item ISA-Collections-Recordings-00113hj, taken from the archive's own YouTube upload. Owner ruling, relayed by the coordinator in the session on 2026-10-13 or 2026-10-14 (the exact day was not recorded): "do it", to using the archive's copy. Check of the archive's terms of use on 2026-10-14 (factual, not legal advice). The live pages, https://catalog.archives.gov.il/en/terms-of-use/ and https://catalog.archives.gov.il/תנאי-שימוש/, refuse scripted requests (HTTP 403), so the text was read from Wayback Machine captures: the English page's own JSON (WordPress page 5572, "modified 2018-01-22"), captured 2024-06-15, and the Hebrew page, captured 2021-01-10. (1) Commercial use: the English summary says "Use any document that is unmarked without charge for any purpose including commercial use", but the English grant says "without limitation in time or purpose, except for commercial use". The Hebrew grant (2.ג) says «לכל מטרה, לרבות כל שימוש מסחרי». So the English text contradicts itself, and the Hebrew allows commercial use. (2) What is allowed: "Copying the document, distributing copies of it, communicating it to the public ... and making technical changes in the document, as needed in order to making it feasible for use in any necessary media or format". What is forbidden: "Creating a derivative work of the document, especially a distortion or mutilation of the work". What is required: "the user must indicate the name of the creator and the name of the Ministry". The excerpt is a cut decoded to PCM with no other processing, and the screen credits "Ralph Hellinger, Israel State Archives". (3) Scope: the permit covers "the documents in this website and whose copyrights fully belong to the Ministry", which "will be unmarked"; third-party works are marked. Open for the owner: (a) whether the permit, written for the archive's website, covers a copy taken from the archive's YouTube channel (the catalogue page could not be read by script to see whether the item is marked); (b) whether a 9 s excerpt counts as a technical change rather than a derivative work; (c) the archive's description names Ralph Hellinger of Radio Doctor as the recordist, and whether the archive holds his rights in full is not stated; (d) the US status (a URAA-restored term is possible). Issue #39 asked for original, CC0 or CC BY audio; this is neither, by the owner's choice. Decided:
- [x] D-H The AI concept art reproduces no Civilization VII icon, logo or wordmark: every image in `promo/final/` (`01` to `08`) and the hero (`docs/images/hero-concept-1936.jpg`), all prompted "in the style of Civilization VII". Owner looks at each. Decided (owner-delegated check, 2026-10-10): no Civilization, Firaxis or 2K logo, wordmark, leader portrait or copied icon in any of the nine images; 03 and the hero use generic AI-drawn yield glyphs whose colours echo Civ's.
diff --git a/docs/superpowers/plans/2026-10-13-decision-videos.md b/docs/superpowers/plans/2026-10-13-decision-videos.md
index 2056a4a07..460a9a0cc 100644
--- a/docs/superpowers/plans/2026-10-13-decision-videos.md
+++ b/docs/superpowers/plans/2026-10-13-decision-videos.md
@@ -311,6 +311,9 @@ starts. The outline:
- **The file is not altered.** No trim, fade, denoise or loudness change.
- Copy it byte for byte to `unity/Assets/Audio/declaration-1948-isa-00113hj.wav`.
+ - *Superseded (review of #465):* that WAV was itself an ffmpeg decode, so "byte for byte" could not be claimed. What
+ ships is a stream-copy cut of the archive's upload, decoded to PCM WAV with no other processing, fetched from
+ StreamingAssets; the chain is in `docs/declaration-recording.md`.
- Import it as an AudioClip with **PCM** compression, so Unity doesn't transcode it. The cost of PCM is about 9.29 s ×
rate × channels × 2 bytes; I'll measure it.
- Check: the imported clip's sample count and rate match the WAV.
diff --git a/scripts/oss/oss_policy.py b/scripts/oss/oss_policy.py
index 160badee3..2891a24c2 100755
--- a/scripts/oss/oss_policy.py
+++ b/scripts/oss/oss_policy.py
@@ -66,8 +66,11 @@ BINARY_EXTENSIONS = frozenset({
})
PROVENANCE_GLOBS: tuple[str, ...] = ("content/map/*", "unity/Assets/StreamingAssets/map/*")
+# "Israel State Archives terms of use": the archive's own licence for its catalogue items (Ben-Gurion's 1948 recording,
+# unity/Assets/StreamingAssets/audio/; ASSETS.yaml records the terms and their open questions; the row stays owner-verify).
ALLOWED_LICENCES = frozenset({"MIT", "CC-BY-4.0", "CC-BY-SA-4.0", "CC0-1.0", "OFL-1.1", "Public-Domain",
- "Copernicus-DEM", "IMS-data.gov.il", "Unity-Companion-License", "unknown"})
+ "Copernicus-DEM", "IMS-data.gov.il", "Unity-Companion-License",
+ "Israel State Archives terms of use", "unknown"})
STATUSES = frozenset({"verified", "owner-verify"})
RULE_KEYS = ("glob", "licence", "source", "status")
diff --git a/scripts/oss/tests/test_assets.py b/scripts/oss/tests/test_assets.py
index 3cfef7d2c..250e4af43 100644
--- a/scripts/oss/tests/test_assets.py
+++ b/scripts/oss/tests/test_assets.py
@@ -102,3 +102,16 @@ def test_removed_path_must_not_be_tracked(make_repo, capsys):
root = make_repo({"ASSETS.yaml": rules, "img/a.png": b"\x89PNG"})
assert run(root) == 1
assert "img/a.png: removed-but-tracked" in capsys.readouterr().out
+
+
+def test_the_israel_state_archives_terms_are_an_allowed_licence_but_owner_verify_blocks_a_release(make_repo, capsys):
+ rules = """rules:
+ - glob: "audio/*.wav"
+ licence: Israel State Archives terms of use
+ source: Israel State Archives item
+ status: owner-verify
+removed: []
+"""
+ root = make_repo({"ASSETS.yaml": rules, "audio/a.wav": b"RIFF"})
+ assert run(root) == 0
+ assert run(root, "--release") == 1
diff --git a/unity/Assets/Scripts/UI/DeclarationRecording.cs b/unity/Assets/Scripts/UI/DeclarationRecording.cs
new file mode 100644
index 000000000..0a67c5d09
--- /dev/null
+++ b/unity/Assets/Scripts/UI/DeclarationRecording.cs
@@ -0,0 +1,282 @@
+#nullable enable
+using System;
+using UnityEngine;
+using UnityEngine.Networking;
+using UnityEngine.UIElements;
+
+namespace Statecraft.Game.UI
+{
+ /// <summary>The start screen's "Play the recording" button: David Ben-Gurion reading the sentence of the Declaration of
+ /// Independence that proclaims the state, from the archive's recording of the ceremony of 14 May 1948, Israel State
+ /// Archives item ISA-Collections-Recordings-00113hj (docs/declaration-recording.md; docs/oss/DECISIONS.md D-R).
+ /// The file is the archive's own Opus upload, cut by stream copy (no re-encode) and then decoded to 16-bit PCM WAV,
+ /// which every browser and Unity's own reader play (the Web player could not load the Ogg Opus cut); it sits in StreamingAssets (its SHA-256 is pinned in a test), is fetched only when the player presses the button,
+ /// and the browser decodes it. It plays only from that press, never by itself, never on Continue or New Game; it stops
+ /// when the start screen closes. While the file loads the button reads "Loading…" (pressing it again cancels); the
+ /// captions and "Stop" show only once the audio is actually playing; a failed or slow load ends with a message.
+ /// GameRoot builds it only when the start screen is shown, which automated runs skip (StartScreenPresenter.Skipped),
+ /// and the button's row is hidden by the stylesheet until this class shows it.</summary>
+ public sealed class DeclarationRecording : IDisposable
+ {
+ /// <summary>The recording's path under StreamingAssets, and the SHA-256 of the committed excerpt
+ /// (DeclarationRecordingTests checks the shipped file against it).</summary>
+ public const string File = "audio/declaration-1948-isa-00113hj.wav";
+ public const string Sha256 = "24e7bc48f5d0134bbe28f0f81b3668235398e3a4bfd83d54aa8650aeae2da370";
+
+ /// <summary>The limits before a press ends with "start.recording_failed". The fetch fails when no byte has arrived for
+ /// StallTimeoutMs (a slow link that is still receiving is never cut off), or in any case after LoadCapMs (the 1.8 MB
+ /// file takes about 60 s at 250 kbit/s). Decoding has its own budget, DecodeTimeoutMs from the moment the file has
+ /// arrived; the audio then has StartTimeoutMs after Play to start.</summary>
+ public const int StallTimeoutMs = 8000, LoadCapMs = 60000, DecodeTimeoutMs = 5000, StartTimeoutMs = 3000;
+ const int WatchMs = 200;
+
+ /// <summary>A fetch under way: the bytes received so far, and a call that aborts it (after which its done callback is
+ /// not called).</summary>
+ public interface IRequest
+ {
+ ulong Bytes { get; }
+ void Abort();
+ }
+
+ /// <summary>Fetches <paramref name="url"/> as a clip and calls <paramref name="done"/> once, with the clip or with
+ /// an error (never both).</summary>
+ public delegate IRequest Fetch(string url, Action<AudioClip?, string?> done);
+
+ /// <summary>Where the clip plays. The game's is an AudioSource on its own GameObject (SourceOutput).</summary>
+ public interface IOutput : IDisposable
+ {
+ /// <summary>True when the clip's audio data is decoded and it can play (on the Web the browser decodes it after
+ /// the fetch, asynchronously); asks for the data when it is not loaded yet. Null when it failed to load.</summary>
+ bool? Ready(AudioClip clip);
+ void Play(AudioClip clip);
+ void Stop();
+ bool IsPlaying { get; }
+ /// <summary>The play position in seconds: it moves only when the audio really plays.</summary>
+ float Position { get; }
+ }
+
+ public enum Phase { Idle, Loading, Playing }
+
+ readonly Button button; readonly VisualElement caption, row; readonly UiText text;
+ readonly Action onPress; readonly Action<string> say; readonly Fetch fetch; readonly IOutput output;
+ AudioClip? clip; IRequest? request; IVisualElementScheduledItem? timer;
+ bool heard, started; int waitedMs, stalledMs, generation; ulong bytesSeen;
+
+ /// <summary>Idle; Loading from the press until the audio is heard; Playing while it is heard.</summary>
+ public Phase State { get; private set; }
+
+ /// <summary>True from the press until the recording ends, fails or is stopped (including while it loads).</summary>
+ public bool Playing => State != Phase.Idle;
+
+ /// <param name="say">Shows a message (the toast) when the recording cannot be played.</param>
+ /// <param name="fetch">Test seam; null fetches with UnityWebRequestMultimedia.</param>
+ /// <param name="output">Test seam; null plays through an AudioSource.</param>
+ public DeclarationRecording(VisualElement root, UiText text, Action<string> say, Fetch? fetch = null, IOutput? output = null)
+ {
+ this.text = text; this.say = say;
+ this.fetch = fetch ?? WebFetch;
+ this.output = output ?? new SourceOutput();
+ row = root.Q<VisualElement>("start-recording");
+ button = root.Q<Button>("start-listen");
+ caption = root.Q<VisualElement>("start-caption");
+ button.text = text["start.listen"];
+ onPress = Toggle;
+ button.clicked += onPress;
+ row.style.display = DisplayStyle.Flex;
+ caption.style.display = DisplayStyle.None;
+ }
+
+ /// <summary>The URL the button fetches.</summary>
+ public static string Url()
+ {
+ var url = Application.streamingAssetsPath + "/" + File;
+ return url.Contains("://") ? url : "file://" + url;
+ }
+
+ /// <summary>The button: play; or, while loading or playing, stop.</summary>
+ public void Toggle()
+ {
+ if (Playing) { Stop(); return; }
+ State = Phase.Loading;
+ button.text = text["start.loading"];
+ waitedMs = 0; stalledMs = 0; bytesSeen = 0; heard = false; started = false;
+ timer = button.schedule.Execute(Tick).Every(WatchMs).StartingIn(WatchMs);
+ var mine = ++generation;
+ request = fetch(Url(), (c, error) =>
+ {
+ if (mine != generation || State != Phase.Loading) { Release(c); return; } // stopped, or pressed again, meanwhile
+ request = null;
+ if (c == null) { Fail("fetch: " + error); return; }
+ clip = c;
+ waitedMs = 0; // the decode budget starts now
+ Begin();
+ });
+ if (State != Phase.Loading || clip != null) request = null; // the fetch answered at once
+ }
+
+ /// <summary>Plays the fetched clip once its data is ready (Tick tries again until then).</summary>
+ void Begin()
+ {
+ var ready = output.Ready(clip!);
+ if (ready == null) { Fail("the clip did not decode"); return; }
+ if (ready == false) return;
+ output.Play(clip!);
+ started = true;
+ waitedMs = 0;
+ }
+
+ void Heard()
+ {
+ heard = true;
+ State = Phase.Playing;
+ button.text = text["start.stop"];
+ caption.style.display = DisplayStyle.Flex;
+ Debug.Log(FormattableString.Invariant($"RECORDING playing {File} ({clip!.length:0.00} s, at {output.Position:0.00} s)"));
+ }
+
+ /// <summary>Every WatchMs while loading or playing: the load, decode and start timeouts; the play once the data is
+ /// decoded; the first moment the audio is heard (playing, and its position has moved); and its end. The end is "was
+ /// heard, now is not playing", so a slow first start never cancels itself.</summary>
+ internal void Tick()
+ {
+ if (!Playing) return;
+ waitedMs += WatchMs;
+ if (clip == null)
+ {
+ var bytes = request?.Bytes ?? 0;
+ if (bytes > bytesSeen) { bytesSeen = bytes; stalledMs = 0; } else stalledMs += WatchMs;
+ if (stalledMs >= StallTimeoutMs) Fail($"no data for {StallTimeoutMs} ms");
+ else if (waitedMs >= LoadCapMs) Fail($"not loaded after {LoadCapMs} ms");
+ return;
+ }
+ if (!started)
+ {
+ Begin();
+ if (Playing && !started && waitedMs >= DecodeTimeoutMs) Fail("timed out decoding");
+ return;
+ }
+ if (!heard)
+ {
+ if (output.IsPlaying && output.Position > 0f) Heard();
+ else if (waitedMs >= StartTimeoutMs) Fail("did not start");
+ return;
+ }
+ if (!output.IsPlaying) Stop();
+ }
+
+ void Fail(string why)
+ {
+ Debug.LogWarning("RECORDING failed " + File + ": " + why);
+ Stop();
+ say(text["start.recording_failed"]);
+ }
+
+ /// <summary>Stops it (the start screen closing, the button, the end of the clip) and releases the clip. Safe to
+ /// call when it is not playing.</summary>
+ public void Stop()
+ {
+ generation++;
+ var r = request; request = null; r?.Abort();
+ timer?.Pause(); timer = null;
+ output.Stop();
+ Release(clip); clip = null;
+ heard = false; started = false;
+ State = Phase.Idle;
+ button.text = text["start.listen"];
+ caption.style.display = DisplayStyle.None;
+ }
+
+ static void Release(AudioClip? c)
+ {
+ if (c == null) return;
+ if (Application.isPlaying) UnityEngine.Object.Destroy(c); else UnityEngine.Object.DestroyImmediate(c);
+ }
+
+ public void Dispose()
+ {
+ Stop();
+ button.clicked -= onPress;
+ output.Dispose();
+ }
+
+ /// <summary>The game's fetch: UnityWebRequestMultimedia from StreamingAssets, as WAV.</summary>
+ static IRequest WebFetch(string url, Action<AudioClip?, string?> done) => new WebRequest(url, done);
+
+ sealed class WebRequest : IRequest
+ {
+ readonly UnityWebRequest request;
+ bool aborted, finished;
+
+ public WebRequest(string url, Action<AudioClip?, string?> done)
+ {
+ request = UnityWebRequestMultimedia.GetAudioClip(url, AudioType.WAV);
+ request.SendWebRequest().completed += _ => Done(done);
+ }
+
+ public ulong Bytes => finished ? 0 : request.downloadedBytes;
+
+ public void Abort() { if (aborted || finished) return; aborted = true; request.Abort(); }
+
+ void Done(Action<AudioClip?, string?> done)
+ {
+ finished = true;
+ AudioClip? c = null; string? error = null;
+ if (!aborted)
+ {
+ if (request.result != UnityWebRequest.Result.Success) error = request.error;
+ else
+ {
+ try { c = DownloadHandlerAudioClip.GetContent(request); }
+ catch (Exception e) { error = e.Message; }
+ if (c == null && error == null) error = "no clip";
+ }
+ }
+ request.Dispose();
+ if (!aborted) done(c, error);
+ }
+ }
+
+ /// <summary>An AudioSource on its own GameObject, made at the first Play.</summary>
+ public sealed class SourceOutput : IOutput
+ {
+ GameObject? go; AudioSource? source;
+
+ public bool? Ready(AudioClip clip)
+ {
+ switch (clip.loadState)
+ {
+ case AudioDataLoadState.Loaded: return true;
+ case AudioDataLoadState.Failed: return null;
+ case AudioDataLoadState.Unloaded: clip.LoadAudioData(); return false;
+ default: return false;
+ }
+ }
+
+ public void Play(AudioClip clip)
+ {
+ if (go == null)
+ {
+ go = new GameObject("DeclarationRecording");
+ source = go.AddComponent<AudioSource>();
+ source.playOnAwake = false; source.loop = false; source.spatialBlend = 0f;
+ }
+ source!.clip = clip;
+ source.Play();
+ }
+
+ public void Stop() { if (source != null) { source.Stop(); source.clip = null; } }
+
+ public bool IsPlaying => source != null && source.isPlaying;
+
+ public float Position => source != null ? source.time : 0f;
+
+ public AudioSource? Source => source;
+
+ public void Dispose()
+ {
+ if (go != null) { if (Application.isPlaying) UnityEngine.Object.Destroy(go); else UnityEngine.Object.DestroyImmediate(go); }
+ go = null; source = null;
+ }
+ }
+ }
+}
diff --git a/unity/Assets/Scripts/UI/DeclarationRecording.cs.meta b/unity/Assets/Scripts/UI/DeclarationRecording.cs.meta
new file mode 100644
index 000000000..bb05cfde7
--- /dev/null
+++ b/unity/Assets/Scripts/UI/DeclarationRecording.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: bc3ae7cd8f53740c2b56b35bdf8d7e86
\ No newline at end of file
diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.cs
index af4c424fa..b162452ed 100644
--- a/unity/Assets/Scripts/UI/GameRoot.cs
+++ b/unity/Assets/Scripts/UI/GameRoot.cs
@@ -246,7 +246,8 @@ namespace Statecraft.Game.UI
if (startScreen && newGame != null)
{
var cam = cameraController;
- start = Own(new StartScreenPresenter(root, newGame, resumed, shown => { if (cam != null) cam.enabled = !shown; }));
+ var recording = Own(new DeclarationRecording(root, text, toast.Show)); // never built in automated runs (Skipped)
+ start = Own(new StartScreenPresenter(root, newGame, resumed, shown => { if (cam != null) cam.enabled = !shown; }, recording));
start.Show();
}
root.Q("root")?.RemoveFromClassList("loading"); // ready: the bar, panels and screens may show (P2-1)
diff --git a/unity/Assets/Scripts/UI/StartScreenPresenter.cs b/unity/Assets/Scripts/UI/StartScreenPresenter.cs
index 24c471cd1..f330a730c 100644
--- a/unity/Assets/Scripts/UI/StartScreenPresenter.cs
+++ b/unity/Assets/Scripts/UI/StartScreenPresenter.cs
@@ -54,8 +54,14 @@ namespace Statecraft.Game.UI
/// <summary>Continue is offered: the session continues the autosave.</summary>
public bool Resumed { get; private set; }
- public StartScreenPresenter(VisualElement root, NewGamePresenter newGame, bool resumed, Action<bool>? shownChanged = null)
+ readonly DeclarationRecording? recording;
+
+ /// <param name="recording">The "Play the recording" button's player (null in tests that do not need it); the screen
+ /// stops it when it closes.</param>
+ public StartScreenPresenter(VisualElement root, NewGamePresenter newGame, bool resumed, Action<bool>? shownChanged = null,
+ DeclarationRecording? recording = null)
{
+ this.recording = recording;
this.newGame = newGame; this.shownChanged = shownChanged; Resumed = resumed;
hudRoot = root.Q("root") ?? root;
screen = root.Q<VisualElement>("start-screen");
@@ -99,6 +105,7 @@ namespace Statecraft.Game.UI
public void Close()
{
if (!IsOpen) return;
+ recording?.Stop();
hudRoot.RemoveFromClassList(OpenClass);
ScreenNav.DisableCovered(hudRoot);
var focused = screen.focusController?.focusedElement as VisualElement;
diff --git a/unity/Assets/StreamingAssets/audio.meta b/unity/Assets/StreamingAssets/audio.meta
new file mode 100644
index 000000000..a6f7595b7
--- /dev/null
+++ b/unity/Assets/StreamingAssets/audio.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: b6ffae44a60af45988e13630edc3e144
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav b/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav
new file mode 100644
index 000000000..43cdbd132
Binary files /dev/null and b/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav differ
diff --git a/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav.meta b/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav.meta
new file mode 100644
index 000000000..12c9d1818
--- /dev/null
+++ b/unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 79e369e8bdfc44491ba3f6fcc84e651c
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs b/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs
new file mode 100644
index 000000000..3c67c5aff
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs
@@ -0,0 +1,313 @@
+#nullable enable
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Security.Cryptography;
+using System.Text.RegularExpressions;
+using NUnit.Framework;
+using Statecraft.Game.UI;
+using UnityEditor;
+using UnityEngine;
+using UnityEngine.TestTools;
+using UnityEngine.UIElements;
+
+/// <summary>Ben-Gurion's 1948 recording on the start screen (docs/declaration-recording.md): the committed excerpt is pinned
+/// by hash; it plays only from its button; while it loads the button says so, and the captions and "Stop" show only once
+/// the audio is heard; a failed or slow load ends with a message; the end of the clip is "was playing, now is not"; the
+/// clip is released on stop. The fetch and the audio output are fakes here (the game's are a UnityWebRequest and an
+/// AudioSource), so every path runs in edit mode without a network or an audio device.</summary>
+public class DeclarationRecordingTests
+{
+ static UiText Text => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.Strings).text);
+ static string FilePath => Path.Combine(Application.streamingAssetsPath, DeclarationRecording.File);
+
+ [Test]
+ public void TheCommittedExcerptIsPinnedByHash()
+ {
+ Assert.IsTrue(File.Exists(FilePath), FilePath);
+ using var sha = SHA256.Create();
+ var hash = string.Concat(sha.ComputeHash(File.ReadAllBytes(FilePath)).Select(b => b.ToString("x2")));
+ Assert.AreEqual(DeclarationRecording.Sha256, hash, "the committed excerpt (docs/declaration-recording.md)");
+ Assert.AreEqual(1784396, new FileInfo(FilePath).Length);
+ Assert.AreEqual("RIFF", System.Text.Encoding.ASCII.GetString(File.ReadAllBytes(FilePath), 0, 4), "a WAV file");
+ Assert.IsNull(AssetImporter.GetAtPath("Assets/StreamingAssets/" + DeclarationRecording.File) as AudioImporter,
+ "StreamingAssets: Unity does not import or re-encode it");
+ }
+
+ /// <summary>A fetch the test answers by hand.</summary>
+ sealed class FakeFetch
+ {
+ public readonly List<string> Urls = new List<string>();
+ public Action<AudioClip?, string?>? Pending;
+ public int Aborts;
+ public ulong Bytes;
+ sealed class Request : DeclarationRecording.IRequest
+ {
+ readonly FakeFetch f; public Request(FakeFetch f) { this.f = f; }
+ public ulong Bytes => f.Bytes;
+ public void Abort() => f.Aborts++;
+ }
+ public DeclarationRecording.IRequest Start(string url, Action<AudioClip?, string?> done) { Urls.Add(url); Pending = done; Bytes = 0; return new Request(this); }
+ public AudioClip Answer()
+ {
+ var clip = AudioClip.Create("fake", 4800, 1, 48000, false);
+ Pending!(clip, null);
+ return clip;
+ }
+ }
+
+ sealed class FakeOutput : DeclarationRecording.IOutput
+ {
+ public readonly List<AudioClip> Played = new List<AudioClip>();
+ public bool IsPlaying { get; set; }
+ public float Position => IsPlaying ? 0.2f : 0f;
+ public bool? Decoded = true;
+ public bool StartsAtOnce = true;
+ public int Stops;
+ public bool? Ready(AudioClip clip) => Decoded;
+ public void Play(AudioClip clip) { Played.Add(clip); IsPlaying = StartsAtOnce; }
+ public void Stop() { Stops++; IsPlaying = false; }
+ public void Dispose() { }
+ }
+
+ sealed class Rig : IDisposable
+ {
+ public readonly UiTestKit Ui = new UiTestKit();
+ public readonly FakeFetch Fetch = new FakeFetch();
+ public readonly FakeOutput Out = new FakeOutput();
+ public readonly List<string> Said = new List<string>();
+ public readonly DeclarationRecording Recording;
+ public Rig() { Recording = new DeclarationRecording(Ui.Root, Text, Said.Add, Fetch.Start, Out); }
+ public Button Listen => Ui.Q<Button>("start-listen");
+ public bool Captions => Ui.Root.Q("start-caption").style.display.value == DisplayStyle.Flex;
+ public void Press() => UiTestKit.Press(Listen);
+ public void Ticks(int ms) { for (int t = 0; t < ms; t += 200) Recording.Tick(); }
+ /// <summary>Ticks while the fetch keeps receiving a few bytes each time (a slow link).</summary>
+ public void TicksReceiving(int ms) { for (int t = 0; t < ms; t += 200) { Fetch.Bytes += 4000; Recording.Tick(); } }
+ public void Dispose() { Recording.Dispose(); Ui.Dispose(); }
+ }
+
+ [Test]
+ public void ThePressLoadsThenPlaysAndOnlyThenShowsTheCaptionsAndStop()
+ {
+ using var r = new Rig();
+ Assert.AreEqual("Recording: Ralph Hellinger, Israel State Archives", r.Ui.Q<Label>("start-recording-credit").text);
+ Assert.AreEqual("Play the recording", r.Listen.text);
+ Assert.IsFalse(r.Recording.Playing, "nothing plays by itself");
+ Assert.IsEmpty(r.Fetch.Urls, "nothing is fetched before the press");
+
+ r.Press();
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State);
+ Assert.AreEqual(1, r.Fetch.Urls.Count);
+ StringAssert.EndsWith("/" + DeclarationRecording.File, r.Fetch.Urls[0]);
+ Assert.AreEqual("Loading the recording…", r.Listen.text);
+ Assert.IsFalse(r.Captions, "no captions over silence while it loads");
+ Assert.IsEmpty(r.Out.Played);
+
+ LogAssert.Expect(LogType.Log, new Regex("^RECORDING playing " + Regex.Escape(DeclarationRecording.File) + @" \(0\.10 s, at 0\.20 s\)$"));
+ var clip = r.Fetch.Answer();
+ Assert.AreEqual(new[] { clip }, r.Out.Played, "the fetched clip is played");
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State, "not heard until the watch sees it play");
+ Assert.IsFalse(r.Captions);
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Playing, r.Recording.State);
+ Assert.AreEqual("Stop the recording", r.Listen.text);
+ Assert.IsTrue(r.Captions, "captions while it is heard");
+
+ r.Press();
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.IsFalse(r.Captions);
+ Assert.AreEqual("Play the recording", r.Listen.text);
+ Assert.IsFalse(r.Out.IsPlaying, "the press stops the audio");
+ Assert.IsTrue(clip == null, "the clip is released on stop");
+ Assert.IsEmpty(r.Said);
+ }
+
+ [Test]
+ public void ASlowStartIsWaitedForAndTheEndIsWasPlayingNowIsNot()
+ {
+ using var r = new Rig();
+ r.Out.StartsAtOnce = false; // the browser's decode takes a while
+ r.Press();
+ r.Fetch.Answer();
+ r.Ticks(1000);
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State, "a slow first start does not cancel itself");
+ Assert.IsFalse(r.Captions);
+ LogAssert.Expect(LogType.Log, new Regex("^RECORDING playing "));
+ r.Out.IsPlaying = true;
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Playing, r.Recording.State);
+ Assert.IsTrue(r.Captions);
+ r.Ticks(2000);
+ Assert.IsTrue(r.Recording.Playing, "it plays on");
+ r.Out.IsPlaying = false; // the clip ended
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual("Play the recording", r.Listen.text);
+ Assert.IsEmpty(r.Said, "the end is not a failure");
+ }
+
+ [Test]
+ public void ItPlaysOnlyOnceTheBrowserHasDecodedTheClip()
+ {
+ using var r = new Rig();
+ r.Out.Decoded = false; // the Web player decodes it after the fetch
+ r.Press();
+ r.Fetch.Answer();
+ r.Ticks(1000);
+ Assert.IsEmpty(r.Out.Played, "not played before its data is decoded");
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State);
+ r.Out.Decoded = true;
+ LogAssert.Expect(LogType.Log, new Regex("^RECORDING playing "));
+ r.Ticks(400);
+ Assert.AreEqual(1, r.Out.Played.Count);
+ Assert.AreEqual(DeclarationRecording.Phase.Playing, r.Recording.State);
+ r.Recording.Stop();
+ r.Out.Decoded = null; // a clip that fails to decode
+ r.Press();
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*did not decode"));
+ r.Fetch.Answer();
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(new[] { "The recording could not be played." }, r.Said);
+ }
+
+ [Test]
+ public void AFailedFetchEndsWithAMessage()
+ {
+ using var r = new Rig();
+ r.Press();
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*404"));
+ r.Fetch.Pending!(null, "HTTP/1.1 404 Not Found");
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(new[] { "The recording could not be played." }, r.Said);
+ Assert.IsFalse(r.Captions);
+ Assert.IsEmpty(r.Out.Played);
+ }
+
+ [Test]
+ public void ASlowLinkThatKeepsReceivingIsNotCutOff()
+ {
+ using var r = new Rig();
+ r.Press();
+ r.TicksReceiving(30000); // 30 s at 20 kB/s: far past the stall limit, but never stalled
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State, "still receiving: still loading");
+ Assert.AreEqual(0, r.Fetch.Aborts);
+ LogAssert.Expect(LogType.Log, new Regex("^RECORDING playing "));
+ r.Fetch.Answer(); // it arrives; decoding has its own budget from now
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Playing, r.Recording.State);
+ r.Recording.Stop();
+
+ r.Press(); // a link that never stops trickling meets the overall cap
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*not loaded after 60000 ms"));
+ r.TicksReceiving(DeclarationRecording.LoadCapMs);
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(1, r.Said.Count);
+ }
+
+ [Test]
+ public void ADecodeHasItsOwnBudgetFromTheFileArriving()
+ {
+ using var r = new Rig();
+ r.Out.Decoded = false;
+ r.Press();
+ r.TicksReceiving(7800); // the file lands late
+ r.Fetch.Answer();
+ r.Ticks(DeclarationRecording.DecodeTimeoutMs - 200);
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State, "a late file still gets the whole decode budget");
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*timed out decoding"));
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ }
+
+ [Test]
+ public void AStalledFetchTimesOutAndAStuckStartToo()
+ {
+ using var r = new Rig();
+ r.Press();
+ r.TicksReceiving(1000);
+ r.Ticks(DeclarationRecording.StallTimeoutMs - 200);
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State, "still within the stall limit");
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*no data for 8000 ms"));
+ r.Ticks(200);
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(1, r.Fetch.Aborts, "the request is aborted");
+ Assert.AreEqual(1, r.Said.Count);
+ var late = AudioClip.Create("late", 4800, 1, 48000, false);
+ r.Fetch.Pending!(late, null); // a late answer is dropped and released
+ Assert.IsEmpty(r.Out.Played);
+ Assert.IsTrue(late == null, "a late clip is released");
+
+ r.Out.StartsAtOnce = false;
+ r.Press();
+ r.Fetch.Answer();
+ LogAssert.Expect(LogType.Warning, new Regex("^RECORDING failed .*did not start"));
+ r.Ticks(DeclarationRecording.StartTimeoutMs);
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(2, r.Said.Count);
+ }
+
+ [Test]
+ public void StoppingWhileLoadingAbortsAndAPressAgainStartsAfresh()
+ {
+ using var r = new Rig();
+ r.Press();
+ var first = r.Fetch.Pending!;
+ r.Press(); // cancel
+ Assert.AreEqual(DeclarationRecording.Phase.Idle, r.Recording.State);
+ Assert.AreEqual(1, r.Fetch.Aborts);
+ r.Press();
+ Assert.AreEqual(2, r.Fetch.Urls.Count, "fetched again: the clip is not kept after a stop");
+ first(AudioClip.Create("stale", 4800, 1, 48000, false), null); // the cancelled request answers late
+ Assert.IsEmpty(r.Out.Played, "a stale answer never plays");
+ Assert.AreEqual(DeclarationRecording.Phase.Loading, r.Recording.State);
+ }
+
+ /// <summary>The game's output really calls AudioSource.Play with the clip, and Stop releases it.</summary>
+ [Test]
+ public void TheGamesOutputPlaysTheClipOnAnAudioSource()
+ {
+ var output = new DeclarationRecording.SourceOutput();
+ var clip = AudioClip.Create("probe", 48000, 1, 48000, false);
+ try
+ {
+ Assert.AreEqual(true, output.Ready(clip), "a clip made in memory is loaded");
+ output.Play(clip);
+ Assert.IsNotNull(output.Source);
+ Assert.AreSame(clip, output.Source!.clip);
+ Assert.IsFalse(output.Source.playOnAwake);
+ Assert.IsFalse(output.Source.loop);
+ Assert.AreEqual(0f, output.Source.spatialBlend);
+ Assert.IsTrue(output.Source.isPlaying, "AudioSource.Play was called");
+ output.Stop();
+ Assert.IsFalse(output.Source.isPlaying);
+ Assert.IsNull(output.Source.clip);
+ }
+ finally { output.Dispose(); UnityEngine.Object.DestroyImmediate(clip); }
+ }
+
+ /// <summary>Automated runs skip the start screen, so GameRoot never builds the recording for them (GameSceneTests
+ /// checks the booted game); without it the stylesheet keeps the button's row hidden.</summary>
+ [Test]
+ public void AutomatedRunsSkipTheStartScreenAndTheRowIsHiddenByDefault()
+ {
+ foreach (var flag in new[] { "golden", "shot", "profile", "vprofile", "units" })
+ {
+ Assert.IsTrue(StartScreenPresenter.Skipped(null, new[] { "-" + flag }, webgl: false), flag);
+ Assert.IsTrue(StartScreenPresenter.Skipped("https://x/?" + flag, new string[0], webgl: true), flag);
+ }
+ StringAssert.IsMatch(@"\.start-recording \{ display: none;", File.ReadAllText(UiPaths.Folder + "/Statecraft.uss"),
+ "the row is hidden unless DeclarationRecording shows it");
+ }
+
+ [Test]
+ public void TheHebrewCaptionIsRightToLeftInTheHebrewFace()
+ {
+ using var ui = new UiTestKit();
+ var he = ui.Q<Label>("start-caption-he");
+ Assert.AreEqual(LanguageDirection.RTL, he.languageDirection, "Hebrew right to left");
+ Assert.IsTrue(he.ClassListContains("start-he"), "Frank Ruhl Libre through the advanced text generator, as the panel's Hebrew");
+ // The words themselves are checked against the sources in StartScreenTests.Quoted.
+ }
+}
diff --git a/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs.meta b/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs.meta
new file mode 100644
index 000000000..2011d5381
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/DeclarationRecordingTests.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 4987639359cee479c86e7ea0ffea2ab8
\ No newline at end of file
diff --git a/unity/Assets/Tests/EditMode/GameSceneTests.cs b/unity/Assets/Tests/EditMode/GameSceneTests.cs
index ad6151908..c4e6d5a08 100644
--- a/unity/Assets/Tests/EditMode/GameSceneTests.cs
+++ b/unity/Assets/Tests/EditMode/GameSceneTests.cs
@@ -78,6 +78,17 @@ public class GameSceneTests
Assert.IsNull(GameObject.Find("EventSystem"), "UI Toolkit reads the Input System directly; an EventSystem would take over");
}
+ /// <summary>The game as automated runs boot it (no start screen): no DeclarationRecording is built, so the
+ /// "Play the recording" row keeps the stylesheet's display: none and its button is never set up.</summary>
+ [Test]
+ public void WithoutTheStartScreenThereIsNoRecording()
+ {
+ Boot();
+ Assert.AreEqual(StyleKeyword.Null, Ui.Q("start-recording").style.display.keyword, "nothing shows the row");
+ Assert.AreEqual("", Ui.Q<Button>("start-listen").text, "the button was never set up");
+ Assert.AreEqual(StyleKeyword.Null, Ui.Q("start-caption").style.display.keyword);
+ }
+
[Test]
public void TheGameStartsInTheSceneOnceTheInputsAreLoaded()
{
diff --git a/unity/Assets/Tests/EditMode/StartScreenTests.cs b/unity/Assets/Tests/EditMode/StartScreenTests.cs
index 818c74f33..230510ed0 100644
--- a/unity/Assets/Tests/EditMode/StartScreenTests.cs
+++ b/unity/Assets/Tests/EditMode/StartScreenTests.cs
@@ -54,6 +54,9 @@ public class StartScreenTests
("start-en-proclamation", "…HEREBY DECLARE THE ESTABLISHMENT OF A JEWISH STATE IN ERETZ-ISRAEL, TO BE KNOWN AS THE STATE OF ISRAEL.", "en.txt"),
("start-he-date", "בעיר תל־אביב, היום הזה, ערב שבת, ה׳ אייר תש״ח, 14 במאי 1948.", "he.txt"),
("start-en-date", "IN THE CITY OF TEL-AVIV, ON THIS SABBATH EVE, THE 5TH DAY OF IYAR, 5708 (14TH MAY, 1948).", "en.txt"),
+ // The recording's captions (DeclarationRecording): the sentence Ben-Gurion is heard reading.
+ ("start-caption-he", "…אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת ישראל.", "he.txt"),
+ ("start-caption-en", "…HEREBY DECLARE THE ESTABLISHMENT OF A JEWISH STATE IN ERETZ-ISRAEL, TO BE KNOWN AS THE STATE OF ISRAEL.", "en.txt"),
};
[Test]
@@ -169,6 +172,8 @@ public class StartScreenTests
public void Dispose() { Object.DestroyImmediate(go); Object.DestroyImmediate(ps); rt.Release(); Object.DestroyImmediate(rt); }
}
+ sealed class NoAnswer : DeclarationRecording.IRequest { public ulong Bytes => 0; public void Abort() { } }
+
/// <summary>The start the way GameRoot makes it: GameStart.Begin over the store, the toast, New Game and the screen.</summary>
sealed class Rig : IDisposable
{
@@ -177,6 +182,7 @@ public class StartScreenTests
public readonly ToastPresenter Toast;
public readonly NewGamePresenter NewGame;
public readonly StartScreenPresenter Start;
+ public readonly DeclarationRecording Recording;
public readonly List<bool> Shown = new List<bool>();
public Rig(SaveStore store)
@@ -187,12 +193,13 @@ public class StartScreenTests
NewGame = new NewGamePresenter(Ui.Root, Bridge, store, Toast, Text, () => 5UL);
GameStart.Autosave(Bridge, store, Text);
Ui.Root.Q("root").RemoveFromClassList("loading");
- Start = new StartScreenPresenter(Ui.Root, NewGame, resumed, Shown.Add);
+ Recording = new DeclarationRecording(Ui.Root, Text, Toast.Show, (url, done) => new NoAnswer()); // a fetch that never answers
+ Start = new StartScreenPresenter(Ui.Root, NewGame, resumed, Shown.Add, Recording);
Start.Show();
}
public bool ContinueShown => Ui.Q<Button>("start-continue").style.display.value == DisplayStyle.Flex;
- public void Dispose() { Start.Dispose(); NewGame.Dispose(); Toast.Dispose(); Ui.Dispose(); }
+ public void Dispose() { Start.Dispose(); Recording.Dispose(); NewGame.Dispose(); Toast.Dispose(); Ui.Dispose(); }
}
static SaveStore WithSave(SaveStore store, int turns)
@@ -203,6 +210,30 @@ public class StartScreenTests
return store;
}
+ /// <summary>Ben-Gurion's recording (docs/declaration-recording.md) plays only from its own button: never when the screen
+ /// opens, never on Continue or New Game; the screen closing stops it.</summary>
+ [Test]
+ public void TheRecordingPlaysOnlyFromItsButtonAndStopsWhenTheScreenCloses()
+ {
+ var store = WithSave(TempStore(), 2);
+ using (var rig = new Rig(store))
+ {
+ Assert.IsFalse(rig.Recording.Playing, "nothing plays when the screen opens");
+ rig.Ui.Press("start-new-game"); // arms the confirmation
+ Assert.IsFalse(rig.Recording.Playing, "New Game does not play it");
+ rig.Ui.Press("start-continue"); // withdraws and closes
+ Assert.IsFalse(rig.Recording.Playing, "Continue does not play it");
+ }
+ using (var rig = new Rig(WithSave(TempStore(), 2)))
+ {
+ rig.Ui.Press("start-listen");
+ Assert.IsTrue(rig.Recording.Playing, "its button plays it");
+ rig.Ui.Press("start-continue");
+ Assert.IsFalse(rig.Start.IsOpen);
+ Assert.IsFalse(rig.Recording.Playing, "closing the screen stops it");
+ }
+ }
+
[Test]
public void WithoutASaveThereIsNoContinueAndNewGameSimplyBegins()
{
@@ -308,7 +339,7 @@ public class StartScreenTests
var cont = rig.Ui.Q<Button>("start-continue");
cont.Focus();
Assert.AreSame(cont, rig.Ui.Root.focusController?.focusedElement, "Continue has the focus");
- // Tab walks the two buttons only.
+ // Tab walks the screen's buttons only: Continue, New Game and the recording's button.
var seen = new List<string>();
for (int i = 0; i < 4; i++)
{
@@ -318,7 +349,8 @@ public class StartScreenTests
seen.Add((rig.Ui.Root.focusController.focusedElement as VisualElement)?.name ?? "none");
}
Assert.AreEqual("start-new-game", seen[0], "Tab moves from Continue to New Game: " + string.Join(", ", seen));
- Assert.IsTrue(seen.All(n => n == "start-continue" || n == "start-new-game"), "Tab stays on the two buttons: " + string.Join(", ", seen));
+ Assert.IsTrue(seen.All(n => n == "start-continue" || n == "start-new-game" || n == "start-listen"), "Tab stays on the screen's buttons: " + string.Join(", ", seen));
+ CollectionAssert.Contains(seen, "start-listen", "Tab reaches the recording's button: " + string.Join(", ", seen));
rig.Ui.Press("start-continue");
yield return null; yield return null;
Assert.AreEqual(DisplayStyle.Flex, rig.Ui.Root.Q("top-bar").resolvedStyle.display);
diff --git a/unity/Assets/UI/Game.uxml b/unity/Assets/UI/Game.uxml
index 0602be066..a9f055814 100644
--- a/unity/Assets/UI/Game.uxml
+++ b/unity/Assets/UI/Game.uxml
@@ -273,10 +273,21 @@
<ui:Label name="start-he-date" text="בעיר תל־אביב, היום הזה, ערב שבת, ה׳ אייר תש״ח, 14 במאי 1948." class="start-he start-he-date" language-direction="RTL" />
<ui:Label name="start-en-date" text="IN THE CITY OF TEL-AVIV, ON THIS SABBATH EVE, THE 5TH DAY OF IYAR, 5708 (14TH MAY, 1948)." class="start-en" />
<ui:Label name="start-source" text="From the Declaration of the Establishment of the State of Israel (Official Gazette No. 1, 14 May 1948) and its official English translation. Painting: AI-generated." class="start-source" />
+ <!-- Ben-Gurion's reading of the proclaiming sentence, 14 May 1948, recorded by Ralph Hellinger of Radio Doctor, Israel
+ State Archives ISA-Collections-Recordings-00113hj (DeclarationRecording): it plays
+ only from this button, over the still painting, with its words as captions above the panel. -->
+ <ui:VisualElement name="start-recording" class="start-recording">
+ <ui:Button name="start-listen" class="start-listen" />
+ <ui:Label name="start-recording-credit" text="Recording: Ralph Hellinger, Israel State Archives" class="start-recording-credit" />
+ </ui:VisualElement>
<ui:VisualElement name="start-actions" class="start-actions">
<ui:Button name="start-continue" text="Continue" class="start-button" />
<ui:Button name="start-new-game" text="New Game" class="start-button" />
</ui:VisualElement>
+ <ui:VisualElement name="start-caption" class="start-caption" picking-mode="Ignore">
+ <ui:Label name="start-caption-he" text="…אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת ישראל." class="start-he start-caption-he" language-direction="RTL" picking-mode="Ignore" />
+ <ui:Label name="start-caption-en" text="…HEREBY DECLARE THE ESTABLISHMENT OF A JEWISH STATE IN ERETZ-ISRAEL, TO BE KNOWN AS THE STATE OF ISRAEL." class="start-caption-en" picking-mode="Ignore" />
+ </ui:VisualElement>
<Statecraft.Game.UI.UiFrame />
</ui:VisualElement>
</ui:VisualElement>
diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.uss
index de333ef82..90f8642a5 100644
--- a/unity/Assets/UI/Statecraft.uss
+++ b/unity/Assets/UI/Statecraft.uss
@@ -523,5 +523,17 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);
-unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
font-size: 24px; min-width: 220px; margin: 4px 10px; padding: 8px 24px; -unity-text-align: middle-center;
}
+/* The recording (DeclarationRecording): a quiet button and its credit under the source line; while it plays, its words as
+ captions in a dark strip just above the panel, over the painting (the panel is the strip's positioned parent, so the
+ strip follows it in every layout). */
+.start-recording { display: none; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 8px; }
+.start-listen { font-size: 18px; padding: 4px 16px; margin: 2px 10px; -unity-text-align: middle-center; }
+.start-recording-credit { font-size: 15px; color: var(--ink-dim); margin: 2px 6px; }
+.start-caption {
+ display: none; position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 12px; padding: 8px 20px 10px 20px;
+ align-items: center; background-color: rgba(9, 14, 26, 0.88); border-radius: 3px;
+}
+.start-caption-he { font-size: 30px; margin: 0; }
+.start-caption-en { font-size: 19px; color: var(--ink); white-space: normal; -unity-text-align: middle-center; margin: 4px 0 0 0; }
/* New Game's prompt (the toast) shows at the top of the start screen, clear of the panel. */
.start-open .toast { top: 24px; left: 25%; right: 25%; width: auto; }
diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yaml
index e530cb032..22656cda7 100644
--- a/unity/Assets/UI/strings.en.yaml
+++ b/unity/Assets/UI/strings.en.yaml
@@ -17,6 +17,10 @@ event.reopen: "Decision waiting"
event.illustration: "Illustration"
event.photo: "Photograph"
event.ai_label: "AI-generated illustration"
+start.listen: "Play the recording"
+start.stop: "Stop the recording"
+start.loading: "Loading the recording…"
+start.recording_failed: "The recording could not be played."
order.game_over: "The game is over"
order.no_attention: "Not enough attention (need {0:0.0}, have {1:0.0})"
order.unknown: "Unknown {0} '{1}'"
diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yaml
index 7041407c1..608a82db5 100644
--- a/unity/Assets/UI/strings.he.yaml
+++ b/unity/Assets/UI/strings.he.yaml
@@ -16,6 +16,10 @@ event.reopen: "החלטה ממתינה"
event.illustration: "איור"
event.photo: "תצלום"
event.ai_label: "איור שנוצר בבינה מלאכותית"
+start.listen: "השמעת ההקלטה"
+start.stop: "עצירת ההקלטה"
+start.loading: "טוען את ההקלטה…"
+start.recording_failed: "לא ניתן היה להשמיע את ההקלטה."
order.game_over: "המשחק הסתיים"
order.no_attention: "אין מספיק תשומת לב (נדרש {0:0.0}, יש {1:0.0})"
order.unknown: "{0} לא מוכר: '{1}'"