Index of every page on this site: llms.txt
All skills
vois-so avatar

/audio-qa

@e0e7827
by vois.sovois-so/skills1 stars
Run it yourself

Examines voice audio from Vois Studio before you give it to the user or publish it. It compares a transcript of each line with the script and gives the word error rate. It makes a new take with a new seed when a line has a problem, with 3 takes at most. It finds samples at full scale and near silence. It normalizes the loudness to a target, for example -16 LUFS for a stereo podcast, -19 LUFS for mono, and -1 dBTP. A Node.js script does all the checks and writes a report. Use when the user says "check the audio", "QA these files", "did it say everything", "is the audio clipping", "normalize the loudness", "make it podcast loud" or "verify the voiceover before I upload it". The checks work on each WAV file. Retakes from vois-cli are available on Pro, Subscriber, AppSumo Lifetime Tier 2 or 3, and the Free plan with export credits.

  • 4 files
  • 41.6 KB
  • MIT
  • Updated last week
  • GitHub
Use this Skill: https://skilld.dev/gh/vois-so/skills/audio-qa

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesloudness.md

≈894 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Loudness

Loudness in LUFS is the level that a listener hears, measured for all of the file. The true peak in dBTP is the highest level of the signal between the samples. A platform makes a file louder or quieter to its own target. If the file is at the target, the platform does not change it.

Targets

Platform Integrated loudness Limit for the true peak Remarks
Podcast, stereo -16 LUFS -1 dBTP The usual target for podcast apps.
Podcast, mono -19 LUFS -1 dBTP A mono file at -19 LUFS sounds as loud as a stereo file at -16 LUFS.
Audiobook (ACX) about -20 LUFS -3 dB peak ACX measures RMS from -23 to -18 dB, and a noise floor of -60 dB or less.
Radio and TV (EBU R 128) -23 LUFS -1 dBTP
Video platforms -14 LUFS -1 dBTP Many video platforms make louder files quieter to about this level.

Voice audio from Vois Studio is mono at 24 kHz.

Measure a file

ffmpeg -hide_banner -nostats -i final.wav -af loudnorm=I=-16:TP=-1:LRA=11:print_format=json -f null -

Read input_i (LUFS) and input_tp (dBTP) in the output.

Normalize a file in two passes

The first pass measures. The second pass applies the measured values. Two passes give a linear change of level when it is possible. A linear change does not change the dynamics of the voice.

# Pass 1: measure. Write down input_i, input_tp, input_lra, input_thresh and target_offset.
ffmpeg -hide_banner -nostats -i final.wav \
  -af loudnorm=I=-19:TP=-1:LRA=11:print_format=json -f null -

# Pass 2: apply. Put the values from pass 1 in place of the numbers here.
ffmpeg -hide_banner -y -i final.wav \
  -af loudnorm=I=-19:TP=-1:LRA=11:measured_I=-23.2:measured_TP=-8.2:measured_LRA=2.1:measured_thresh=-33.5:offset=0.3:linear=true:print_format=json \
  -ar 24000 -ac 1 -c:a pcm_s16le final-normalized.wav

The QA script does these two passes for each file with --normalize-dir.

  • -ar 24000 keeps the sample rate. The filter changes the sample rate. Thus give the output rate.
  • -ac 1 keeps a mono file mono. Use -ac 2 only if the platform must have stereo.
  • normalization_type in the pass 2 output is linear or dynamic. dynamic means that one change of level could not make the target and the true peak limit correct at the same time. Listen to the file. If it is not good, use a lower target or a lower ceiling.

Join lines, then normalize

Normalize the full file, not only each line:

printf "file '%s'\n" intro.wav numbers.wav close.wav > list.txt
ffmpeg -hide_banner -y -f concat -safe 0 -i list.txt -c copy joined.wav
node scripts/audio-qa.mjs joined.wav --target-lufs -19 --normalize-dir normalized

All files in a concat list must have the same sample rate and the same channels. Files from Vois Studio have the same format.

Normalize each line only when each line is an isolated file for the user, for example lines for a game.

Export with Vois Studio

Vois Studio can export and normalize in one step. It uses its own mastering. The export must have 5 s of audio or more.

vois-cli export audio --input joined.wav --output final.mp3 --audio-format mp3 --normalize --target-lufs -19

An export profile has its own loudness that does not change: apple_podcasts and spotify_podcasts -16, acx_audiobook -17 (-20 before Vois Studio 2.6.3), youtube_video -14, generic_hq -19 LUFS.

vois-cli export with-profile --input joined.wav --output final.m4a --profile apple_podcasts

On the Free plan, each export uses one export credit.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at e0e7827. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated last week
metadata
{
  "author": "vois-so",
  "version": "0.1.1"
}
Other metadata
compatibility
Vois Studio on an Apple Silicon Mac or Windows, vois-cli, Node.js 18+, and optionally ffmpeg and a local transcript tool (whisper or whisper.cpp).

README badge

README badge for vois-so/skills/audio-qa