Audio Quality Tool

samtصمت

Check Arabic audio quality before shipping. Silence gaps, clipping, noise, sample rate — all caught.

20 checks · quality score · zero deps
$ pip install samt
The Problem
Arabic TTS is booming — but who checks the quality?

13+ models competing on the Arabic TTS Arena. Teams ship audio with silence gaps, clipping, low volume, background noise, and wrong sample rates. Everyone builds ad-hoc scripts to catch the same problems. samt runs 20 checks on any WAV file and gives you a single quality score. Offline. No API. Pure Python stdlib.

20 Checks
Five categories. Every audio problem caught.
Each check has clear thresholds and contributes to the overall quality score.

Silence

4 checks
  • Leading silence
  • Trailing silence
  • Internal gaps
  • Silence ratio

Quality

4 checks
  • Clipping
  • Low volume
  • Noise floor
  • Dynamic range

Format

2 checks
  • Sample rate
  • Bit depth
ع

Arabic

2 checks
  • Duration range
  • Timing density

Timing

2 checks
  • Click detection
  • DC offset
Quality Score
One number. 0 to 100.
Every file gets a quality score. Weighted across all 20 checks.
90
90-100 Excellent — ship it
75-89 Good — minor issues
50-74 Fair — review first
0-49 Poor — do not ship
In Action
Check. Score. Ship.
samt demo
Commands
5 commands. Zero config.

check

Run all 20 checks on a WAV file. Shows quality score and flagged issues.

scan

Recursively scan a directory. Summary table with per-file scores.

info

Display audio metadata — duration, sample rate, channels, bit depth.

compare

Compare two audio files side by side. Highlights quality differences.

explain

Show what each check does, thresholds, and scoring weights.

Dependencies
Zero.
0

Only uses Python stdlib — wave and struct. No librosa. No numpy. No scipy. No soundfile. Install and run anywhere Python runs.

Get Started
Four lines to check your audio.
# Install $ pip install samt # Check a single file $ samt check recording.wav Score: 87/100 (Good) WARN Leading silence: 1.2s PASS No clipping detected PASS Volume: -18.3 dBFS # Scan a directory $ samt scan audio/ # Compare two TTS outputs $ samt compare tts1.wav tts2.wav # Learn about the checks $ samt explain
artok · bidi-guard · arabench · majal · khalas · safha · raqeeb · sarih · qalam · naql · samt