Files
2026-11-02 05:35:14 +01:00

20 lines
1.7 KiB
Markdown

# Environmental soundscapes
Four original, procedurally rendered sound textures ship as 24-second, 24 kHz mono PCM16 WAV loops. No third-party recordings, models, downloads or samples are used for these soundscapes. They are sound design approximations rather than field recordings.
| File | Scene | Texture |
| --- | --- | --- |
| `ambience_cottage.wav` | Cottage and homecoming story pages | Soft air through trees and quiet timber movement |
| `ambience_harbour.wav` | Boat, anchor and shore bell | Small swells and water washing against the harbour wall |
| `ambience_bridge.wav` | Stone bridge | Steady current with changing surface turbulence |
| `ambience_tower.wav` | Gear, lens and lighthouse | Low sheltered wind with higher gusts |
`scripts/render_ambience.py` uses seeded spectral noise, slow periodic envelopes and a smooth loop join. `ambience_manifest.json` records seeds, format, frame counts and SHA-256 hashes. Reproduce with the narration Python environment (NumPy and soundfile), then validate with the standard-library checker:
```sh
python scripts/render_ambience.py
python3 scripts/check_soundscape_assets.py
```
The app plays bundled files, with no synthesis at runtime. Atmosphere defaults on inside the story. Sound & atmosphere saves a separate mute switch and volume, independent of the narration controls. Scene changes fade over 240 ms. The atmosphere falls to a quarter of its usual gain under narration. Muting, leaving the story or backgrounding stops it; foregrounding restores only environmental audio. Narration starts 3 seconds after opening a narrated page; manual controls cancel the delayed start. Audio interruptions and headphone removal pause the players.