FMOD CLI
Headless FMOD Studio 2.04 project builder, XML validator, loudness auditor, and live-port bridge.
Drives FMOD Studio headless via fmodstudiocl to create .fspro projects, register single/multi/looping/3D events idempotently, validate bank assignments and EBU R128 loudness, and build platform banks.
git clone https://github.com/BestRoiMedia/bestroi-game-tools.gitWhy we built it
Adding dozens of sound events and assigning banks in the FMOD Studio GUI is repetitive and hard to automate. fmod.py lets agents manage FMOD projects and catch missing banks or hot peaks from CI or CLI.
Architecture & how it works
Parses Metadata/**/*.xml directly for read-only info and validation, runs FFmpeg EBU R128 analysis for loudness outliers, executes FMOD Scripting API JS through fmodstudiocl -script for edits, and optionally talks to Studio's local scripting socket (127.0.0.1:3663).
Key capabilities
- Headless project creation (new), idempotent event registration (add-events), and bank building (build)
- Read-only XML project inspection (info) and strict validation (EVENT_NO_BANK, AUDIO_MISSING, NO_MASTER_BANK)
- FFmpeg EBU R128 loudness audit flagging silent files, hot peaks (> -1 dBFS), and folder loudness outliers
- Supports single instruments, multi-instrument random playlists, looping, and 3D spatializers
- Live scripting bridge (live ping / eval / add-events) when FMOD Studio GUI is open
Usage example
python3 fmod/fmod.py new ./audio/MyGame
python3 fmod/fmod.py add-events ./audio/MyGame/MyGame.fspro --audio ./sfx/*.wav --each --folder SFX/UI --bank SFX
python3 fmod/fmod.py validate ./audio/MyGame/MyGame.fspro --loudness --strict
python3 fmod/fmod.py build ./audio/MyGame/MyGame.fspro --platforms Desktop