/** * Pure invocation builders for the OS-native TTS adapter — the platform-specific argument arrays the * adapter shells out with. This module is the hermetic, unit-tested core: NO node builtins, NO I/O. * * @module @nhtio/adk/batteries/tts/native/helpers * * @remarks * `buildNativeTtsInvocation` is the pure function that turns a resolved platform + text + output * path + optional voice/rate/pitch into the `{ cmd, args }` pair the executor runs, per platform: * * - **darwin**: `say -o --data-format=LEI16@22050 [...extraArgs] [-v ] [-r ] `. * `--data-format=LEI16@22050` makes `say` emit real 16-bit little-endian PCM WAV at 22050 Hz rather * than its default AIFF, so the adapter can assert the RIFF/WAVE magic on every byte payload. * - **linux**: `espeak-ng -w [...extraArgs] [-v ] [-s ] [-p ] `. * - **win32**: `powershell.exe -NoProfile -NonInteractive -Command