Test: checks audio clips on trogdor CPUs
  • HTML 95.8%
  • Python 3.9%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Moriarty a8b7fb7997 judge-audio: one line per field, and every clip's status first
An agent cut the script's 254 lines of output at 200 by itself and ran the
check twice (the owner's session, 2026-12-04). Six clips now print 84 lines.
The page says to describe the sound itself, not what it is for.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-12-04 18:53:28 -05:00
open-webui Open WebUI's tool answers in words, and checks only the latest message's clips 2026-12-04 18:22:10 -05:00
skills/judge-audio judge-audio: one line per field, and every clip's status first 2026-12-04 18:53:28 -05:00
docker-compose.yml The checker answers in words: a status, a verdict and what a listener heard 2026-12-04 15:46:27 -05:00
Dockerfile A test service that checks audio clips on the CPU 2026-12-03 19:42:18 -05:00
listening-key.json Results of the first test, and a listening test 2026-12-03 19:55:27 -05:00
listening-test.html Results of the first test, and a listening test 2026-12-03 19:55:27 -05:00
publish.sh The checker answers in words: a status, a verdict and what a listener heard 2026-12-04 15:46:27 -05:00
README.md judge-audio: one line per field, and every clip's status first 2026-12-04 18:53:28 -05:00
server.py Say plainly why the listener is away 2026-12-04 15:54:05 -05:00
test.py Results of the first test, and a listening test 2026-12-03 19:55:27 -05:00
test_general_analyze.py The checker as a general judge: 692 clips 2026-12-03 21:57:15 -05:00
test_general_score.py The checker as a general judge: 692 clips 2026-12-03 21:57:15 -05:00

Audio clip checker

Checks a sound or music clip for an agent that cannot hear it, and answers in words. Portainer stack 168 trogdor-audio-check on trogdor's CPUs, port 8098, no login, 16 threads. POST /check?prompt=... with the file as the body; prompt is what the clip should sound like. See "Who uses it".

Since 2026-12-04 each reply ends in a verdict, and each clip is also passed to a model that listens, on nzxt (Portainer stack 171, cmoriarty/nzxt-listener). The owner asked for this after an agent kept five sound effects that were plain noise: the old reply scored them low and also said "problems: none".

Reply field What it is
status, verdict broken, doubtful or ok, and one plain sentence saying why
listener What the listening model heard, written without knowing what was asked for (heard), and its yes or no on faults. Or away, with the reason, when nzxt or its stack is off
sounds_like The three closest of a general list of 37 sounds and 4 fault wordings, by CLAP
problems As before (silent, clipped, mostly silent), and now also "sounds like ...", "does not sound like the description" and "the listener reports a fault"
measured, match, quality Unchanged: measurements, CLAP match to each prompt, Audiobox Aesthetics

How the status is decided:

  • broken: silent or clipped by measurement, or one of the four fault wordings fits the clip better than the first prompt by 0.15 or more (with no prompt: a fault wording scores 0.25 or more).
  • doubtful: the match to the first prompt is under 0.10, or a fault wording fits a little better than the prompt, or the listener says the clip has a fault.
  • ok: none of these. "Mostly silent" is mentioned and does not change the status.

The verdict, tried on 103 clips (2026-12-04)

The clips are the listener trial's: 7 of plain noise and 3 suspect ones from the sound maker's fault, 53 believed good, and 40 damaged on purpose. Run through this service with the listener answering every one:

Clips broken doubtful ok
7 of plain noise 7
3 suspect 2 1
53 believed good 1 52
6 clipped, 2 white noise, 2 silent 10
6 cut off after a tenth 1 5
18 with hiss, low bitrate or pitch wobble 3 15
6 muffled 6
  • This is a best case: the fault wordings and the 0.15 were chosen on these same clips, all from one sound maker.
  • Fine faults pass. Hiss, muffling, low bitrate and pitch wobble mostly come back ok. No part of this checker, and no listening model tried, hears them reliably.
  • The one good clip marked doubtful is a thunder clap that the listener called faulty.
  • Every older field is the same as before for the same clip (three clips compared against the old service).
  • A check takes about 2.3 seconds with the listener and 1.1 seconds when it is away.
  • With the listener's stack stopped, the reply came back in 1.1 seconds with the same status and listener: {"away": ...}.
  • A noise clip can come back doubtful, not broken. One of the morning's five did on 2026-12-04, checked against "a scratching sound": the fault wording scored under the line. The listener heard static, and the page tells an agent to treat that as broken, which it did.
  • Music checked against a description of its use comes back doubtful. Four pieces of quiet piano music did, against "table ambience". The page now says to describe the sound itself.
  • The listener's own words can be wrong while the status is right. Asked seven times about one of the morning's noise clips (as a small MP3, 2026-12-04), it wrote "a short, synthesized musical phrase" six times and "a short, harsh buzzing sound" once. For white noise it wrote "static or white noise", and to the fault question "a clear recording of rushing water". The status was broken every time: it does not rest on those words.

To undo: redeploy the stack with the image forgejo.underthere.xyz/cmoriarty/trogdor-audio-check@sha256:82e57c42c7402034d6199572f777576a51d98a973ba24bd223edb524557a9716 (the one that ran until 2026-12-04 15:54), or set the stack variable LISTENER_URL to empty to keep the verdict and drop the listener. To remove the service, delete the stack and the volume trogdor-audio-check_check_data.

Measured on 2026-12-03 (test.py; every clip made by Stable Audio 3 Small)

Test Sound effects (30 clips) Music (16 clips)
Right description ranked first 28, of 10 descriptions 14, of 8 descriptions
Right one beat a wrong one 99% 98%
Time a clip, middle 1.0 s (4 s clips) 1.6 s (15 s clips)

Wrong ones: 2 of 3 pinball bumpers (heard as breaking glass), both chiptunes (heard as techno). No way to tell whether the checker or the clip was wrong.

Damage (18 clips each) Flagged as a problem Quality score fell Match score fell
Silent 18 11 18
Clipped 17 18 9
White noise 0 17 18
Muffled 1 13 13
Hiss added 0 16 12
Cut to a tenth, then silence 18 8 15
Low bitrate 0 17 16
Wobbling pitch 0 3 16

No clean clip was flagged. The scores of different kinds of clip should not be compared, and tempo and loop seams were not tested. Whether the scores agree with a person is open: listening-test.html, key in listening-key.json.

Against the owner's ratings (2026-12-03, 12 blind clips, 4 sounds of 3 versions)

Ratings: 0A=2 0B=5 0C=5 2A=5 2B=4 2C=4 4A=4 4B=4 4C=5 9A=2 9B=4 9C=2 (average 3.83, what a random pick gets). Eight pairs of versions had different ratings.

Score Pairs in the owner's order Average rating of its top pick
CLAP match 4 of 8 (chance) 4.25
Audiobox PQ, production quality 6 of 8 4.0
Audiobox CU, usefulness 6 of 8 4.5
Audiobox CE, enjoyment 3 of 8, one tie 3.0
Audiobox PC, complexity 2 of 8 3.0

Too few pairs to conclude anything: 6 of 8 happens by luck about one time in seven. It did not pass as a ranker.

As a general judge (2026-12-03, 692 clips from others' datasets; test_general_*.py)

Real recordings, free-form descriptions (AudioCaps test, 279 clips): the right one of 20 descriptions came first for 87%, in the top 3 for 97%, and beat a wrong one 98.6% of the time. A cut-off of 0.10 keeps 89% of right ones and lets 4% of wrong ones through. 8 were flagged as broken. CLAP may have been trained on AudioCaps or similar data; not checked.

Generated music with people's ratings (MusicEval test, 413 clips). Sum = PQ + CE + CU.

Sum CU PQ CE PC Match
Rank correlation with overall rating 0.69 0.68 0.63 0.66 0.08 0.14
Same request, pairs in people's order 78% 77% 74% 75% 49% 59%
Same, ratings at least 1 point apart 89% 88% 85% 86% 51% 61%
Rating of its pick (random 3.21, best 4.13) 3.83 3.84 3.85 3.75 3.33 3.44
Rank correlation with "fits the request" rating 0.51 0.50 0.44 0.51 0.09 0.14

The versions come from different music models, which is easier than versions from one model. Not tested: quality of sound effects against people's ratings (XACLE has ratings but no audio). MusicEval is CC BY-NC 4.0.

Who uses it (2026-12-03)

  • OpenCode on the owner's Mac: skills/judge-audio, copied to /Users/cmoriarty/.config/opencode/skills/judge-audio (copy again after a change). A real session on Inkling, not told how, compared three clips with one scoring run. Since 2026-12-04 the skill tells the agent to act on status and to compare heard with what it wanted. Checked that day in a real session on Ling-3.2-air (22 commands, about 4 minutes): asked for four card-game effects of 1.2 to 2.6 seconds, with one of the morning's noise clips left in the folder, it deleted the noise clip as broken, made the four in whole seconds and trimmed them, remade one that its own trimming had left silent (the checker called it broken), and kept four that came back ok. Nobody has listened to those four. That session also showed the pairing trap that is now fixed: four clips with four descriptions were all checked against the first description. The owner's own session that evening, on the repository that kept the noise in the morning ("Scratch audio review and improvement", Ling-3.2-air, asked to find the terrible sound and improve the rest): it loaded both skills by itself and gave one description per clip. Of the morning's five effects, four came back broken and one doubtful with "harsh electronic noise or static" heard, and it treated all five as broken. Its new penalty sound came back ok but was heard as "a baby crying"; it called that a different sound, as the page says, and made it again. It also cut the script's 254 lines of output at 200 by itself and had to run the check twice. The script now prints one line per field, 84 lines for the same six clips, with every clip's status on the first line.

  • Open WebUI: the tool judge_audio (open-webui/), on the models trogdor and sandbox, readable by every user. It reads only audio the asking user attached. Added through the database on 2026-12-03; copy before it: webui.db.bak-2026-12-03-before-judge-audio. Since 2026-12-04, with the owner's yes, it gives the status, the verdict and what the listener heard, and its description tells the model to say so. It checks the clips attached to the latest message. A later question with nothing attached, or every_clip, takes every clip in the chat, the newest ten at most.

    How it was saved open-webui/update.py, through Open WebUI's own code, after a rehearsal on a copy of its database. Copy before it: webui.db.bak-2026-12-04-before-judge-audio
    Restart None. Open WebUI 0.13.3 compares the saved code with the copy it holds and loads the new one at the next chat
    Versions Open WebUI keeps them: as installed on 2026-12-03, the words (2.0), the latest-message rule (2.1). Workspace, Tools, Judge audio, the menu that reads "Production"
    Checked Inside its container: 13 cases on real clips, before and after each save. Then from a real chat as the owner, titled "Test by Claude", four messages
    To undo Pick an older version in that menu, or run update.py back <version id> in the container (tried on the copy). To remove the tool: take it off the two models and delete it under Workspace, Tools

    The chat, on Ling-3.2-air: a clip of plain noise came back "the clip is broken", with the listener's "loud, continuous static or white noise"; a two-note chime and a drum hit came back fine, each with what the listener heard; asked which of the three to drop, the model named the noise clip. The first try of that chat showed a fault: a second clip in one chat made the tool check the first clip again, against the new description. That is why 2.1 looks only at the latest message. The three test clips were made in the browser, not by the sound maker.

  • Braid: every run, since pull request 628 (issue 627, build add64c1), with OSF_AUDIO_CHECK_SERVER = http://192.168.1.105:8098 on its stack 122. Checked from inside a Braid sandbox: it judged a clip, and ports 8097, 8091 and 8094 were refused. To undo, clear the setting and redeploy. Since 2026-12-04, with the owner's yes, Braid's page and script are this repository's skill (pull request 631, issue 630, build 99c84a0): its agents are told to act on the status first, and they get what the listener heard. Checked from inside a Braid sandbox before and after the deploy, with small MP3s of one of the morning's noise clips and of a dog barking. Before, the script printed no status. After, the noise came back broken with the listener's words, and the dog bark, given its own description, came back ok ("four short, sharp barks from a dog"). The sandbox reaches the checker and not the listener itself. Not checked in a full run. To undo that change, revert pull request 631.