Skip to main content
Built by Best ROI MediaMITWave 1 · LiveBestRoiMedia/game-senses

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.

View on GitHub ↗
Quick clonegit clone https://github.com/BestRoiMedia/game-senses.git
GitHub repositoryBestRoiMedia/game-senses
Module path_tools/ears/
LicenseMIT
Release waveWave 1
LanguagesPython

Why 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

Check audio assets, mix balance, and SFX maskingPython
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
Writes sheet_NN.png waveform and log-frequency spectrogram images for visual review.