ears
Offline audio QA for loudness, true peaks, loop seams, masking, and duplicates.
Offline audio measurement and spectrogram tool that validates LUFS loudness, true peaks, DC offset, click-free loop seams, frequency masking between music and SFX, and MFCC near-duplicates.
git clone https://github.com/BestRoiMedia/game-senses.gitWhy we built it
Just as agents need eyes for rendered frames, they need objective audio measurements to catch clipped SFX, non-zero loop seams, and music beds that bury gameplay cues before a build reaches QA.
Architecture & how it works
Built on ffmpeg, pyloudnorm, and librosa, ears inspects WAV/MP3/OGG assets against mobile or ElevenLabs loudness profiles, checks 4x oversampled true peaks, measures end-to-start loop discontinuities, computes MFCC similarity to flag duplicate assets, and compares SFX spectral bands against music beds. It renders waveform-plus-spectrogram PNG sheets alongside a JSON report.
Key capabilities
- Measures integrated LUFS, 4x oversampled true peak, LRA, DC offset, and clipping runs
- Detects start/end edge clicks and loop seam level jumps or sample discontinuities
- Validates SFX assets against per-sound duration and peak specs (sfx.json)
- Identifies frequency masking where SFX key bands are buried under music beds
- Finds exact and MFCC near-duplicate audio files across asset folders
Usage example
python3 ears/ears.py check ./audio/ --profile mobile
python3 ears/ears.py mix ./audio/ --music-glob "*music*" --sfx-glob "*sfx*"
python3 ears/ears.py mask --music ./audio/theme.mp3 --sfx ./audio/hit.wav --music-gain-db -6