Music and sound effects on trogdor CPUs
  • Python 67.2%
  • Shell 22.9%
  • Dockerfile 9.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Moriarty 130b749b47 make-audio: whole seconds only, and quiet effects raised to a usable volume
The maker returns noise for lengths that are not whole seconds (its open bug
124). The script now rounds a length up and says so. A quiet sound effect
saved as WAV is raised to 70% of full scale. Asked for by the owner on
2026-12-04 after an agent kept five clips of noise.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-12-04 15:40:34 -05:00
skills/make-audio make-audio: whole seconds only, and quiet effects raised to a usable volume 2026-12-04 15:40:34 -05:00
docker-compose.yml 32 threads, the fastest measured 2026-12-03 19:16:28 -05:00
Dockerfile Stable Audio 3 Small on trogdor's CPUs 2026-12-03 19:08:47 -05:00
publish.sh Stable Audio 3 Small on trogdor's CPUs 2026-12-03 19:08:47 -05:00
README.md make-audio: whole seconds only, and quiet effects raised to a usable volume 2026-12-04 15:40:34 -05:00

Music and sound effects on trogdor's CPUs

Stable Audio 3 Small, from the maker's CPU code, with no GPU. Portainer git stack trogdor-audio (stack 167, endpoint 39). The page is http://trogdor:8097 and has no login.

Pick sm-music or sm-sfx under "DiT model". Clips can be up to 2 minutes. The page also prepares the next clip in the background after each one. The page also offers medium, which would download more files; it was not tried.

--no-share matters: without it the maker's page opens a public internet link.

Measured on 2026-12-03 (two Xeon Silver 4214s, command line, files already downloaded)

Whole command, including loading the model, in seconds; two runs each.

Threads 30 s of music 2 min of music 5 s effect
8 7.7, 7.9 not run not run
16 6.6, 6.2 14.5, 14.7 3.9, 3.9
24 6.4, 6.1 14.0, 14.0 4.0, 4.0
32 (set) 6.3, 5.9 13.4, 13.6 3.8, 3.7
40 not run 13.4, 13.7 not run
48 6.8, 6.9 14.7, 14.8 not run

The clips were the right length and not silent. Nobody has listened to them yet.

Known fault: whole seconds only (2026-12-04)

A length that is not a whole number of seconds can come back as loud noise at full volume. Measured through this service, same words and seed at different lengths: all 10 clips at 1.2, 1.5, 1.6, 2.5 and 3.7 seconds were noise; all 14 whole-second clips (1 to 12 seconds) were right; 3.5, 4.5, 7.3, 10.5 and 12.4 seconds also worked. It is the maker's open bug, issue 124; the maker's own page only offers whole seconds. An OpenCode session asked for 1.2 to 2.6 seconds on 2026-12-04 and kept five clips of noise. Good effects also come out very quiet (about -40 to -48 LUFS).

Fixed in the skill's script the same day, with the owner's yes. skills/make-audio/make_audio.py now rounds a length up to the next whole second, and raises a quiet sound effect saved as WAV so that its loudest point sits at 70% of full scale. It says so in its output line. Checked by remaking that session's five effects at the lengths it asked for: all came back as whole seconds, none as noise (the checker's match to "a harsh distorted digital glitch" fell from +0.46 to +0.12 on the card sound), and the two card sounds went from about -40 to -19 and -24 LUFS. The service itself is unchanged: asked directly for 1.2 seconds, it still returns noise. Its effect on the model servers' speed was not measured. License: Stability AI Community License, terms not read.

To change the code or packages: edit, commit, ./publish.sh, then redeploy with "re-pull image" on.

For agents

skills/make-audio is a skill with a script that asks the page for one clip. OpenCode on the owner's Mac has a copy in /Users/cmoriarty/.config/opencode/skills/make-audio since 2026-12-03; copy it again after a change. Checked that day: an OpenCode session on Inkling, not told how, made a 2-second effect and 20 seconds of music. Braid cannot use it: its sandbox refuses port 8097.