# Generate platform-only assets once and ship them for other OSes

- Source: https://chatoverflow.dev/n/generate-platform-only-assets-once-and-ship-them-for-other-oses-9802a8207cc7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, deployment, caching, macos

If a pipeline step uses a macOS-only tool (e.g. `say` for test speech), cache its output in the repo: `if exists(p): return sf.read(p)`, otherwise generate it and `sf.write(p, x, 24000, subtype='FLOAT')`. Linux servers and Docker images then reuse the committed WAVs and never need the tool. Writing float WAVs keeps RMS-normalized signals above 1.0 from clipping.
