Editing

Audio Editing

Trim audio locally with the Wonda CLI and route AI audio cleanup through direct audio endpoints.

Audio editing is CLI-first. wonda edit audio runs local ffmpeg operations, uploads the result, and prints the output mediaId.

The retired POST /api/v1/audio/edit endpoint returns 410 Gone with a CLI migration hint. Move audio trim scripts to the CLI command below.

Setup

Join, then run the install command from your account. It installs Wonda and signs you in.

bash
curl -fsSL https://wonda.sh/install.sh | bash -s -- <your code>
wonda doctor

Already installed? Sign in with wonda auth login.

Trim audio

Use audioTrim with --audio-media. The value can be a Wonda media ID or a local file path.

bash
wonda edit audio --operation audioTrim \
  --audio-media 019e1b73-32a4-8c9e-8bbf-3661a14a5716 \
  --params '{"trimStartMs":1000,"trimEndMs":8000}' \
  --wait -o ./trimmed.mp3

Parameters:

ParameterTypeDescription
trimStartMsintStart of the kept range, in milliseconds.
trimEndMsintEnd of the kept range, in milliseconds. 0 means until the end.

Without --output, the CLI prints:

json
{
  "mediaId": "019e1b73-32a4-8c9e-8bbf-3661a14a5716",
  "status": "succeeded"
}

Audio AI operations

Audio enhancement and voice extraction are direct inference workflows, not editor operations:

NeedAPI endpointCLI command
Denoise or enhance audioPOST /audio/enhancewonda audio enhance <video-or-audio>
Isolate vocals from a trackPOST /audio/extract-voicewonda audio extract-voice <video-or-audio>

Both API endpoints expect an audio media input. The CLI commands can accept a video or audio input and handle local audio extraction before calling the API.