diff --git a/docs/packages/cli.mdx b/docs/packages/cli.mdx index ffb25e040b..d4e18da596 100644 --- a/docs/packages/cli.mdx +++ b/docs/packages/cli.mdx @@ -23,7 +23,7 @@ npm install -g hyperframes | You want to | Use | | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Start a project | [`init`](#init), [`add`](#add), [`catalog`](#catalog) | -| Bring in source material | [`capture`](#capture), [`transcribe`](#transcribe), [`tts`](#tts), [`remove-background`](#remove-background), [`media-treatment`](#media-treatment), [`beats`](#beats) | +| Bring in source material | [`capture`](#capture), [`transcribe`](#transcribe), [`tts`](#tts), [`remove-background`](#remove-background), [`media-treatment`](#media-treatment), [`beats`](#beats), [`normalize-audio`](#normalize-audio) | | Look at it, or share it | [`preview`](#preview), [`present`](#present-and-play), [`play`](#present-and-play), [`publish`](#publish) | | Find problems | [`lint`](#lint), [`check`](#check), [`snapshot`](#snapshot), [`keyframes`](#keyframes), [`compare`](#compare-and-grade-compare), [`grade-compare`](#compare-and-grade-compare) | | Make a file | [`render`](#render), [`benchmark`](#benchmark) | @@ -428,6 +428,30 @@ Needs a local Chrome, the same one `render` uses. Run within a frame or two — a different headless-Chrome audio sample rate can shift a beat slightly. +### `normalize-audio` + +Match one authored audio clip to a reference using the exact local media bytes +and FFmpeg's integrated EBU R128 loudness measurement. + +```bash +# Measure only (the default) +npx hyperframes normalize-audio --reference target-audio --target user-audio + +# Persist the computed gain on #user-audio +npx hyperframes normalize-audio --reference target-audio --target user-audio --write + +# Agent-readable result +npx hyperframes normalize-audio --reference target-audio --target user-audio --json +``` + +`--reference` and `--target` are `