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 / 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.
curl -fsSL https://wonda.sh/install.sh | bash -s -- <your code>
wonda doctorAlready installed? Sign in with wonda auth login.
Trim audio
Use audioTrim with -. The value can be a Wonda media ID or a local file path.
wonda edit audio --operation audioTrim \
--audio-media 019e1b73-32a4-8c9e-8bbf-3661a14a5716 \
--params '{"trimStartMs":1000,"trimEndMs":8000}' \
--wait -o ./trimmed.mp3Parameters:
| Parameter | Type | Description |
|---|---|---|
trimStartMs | int | Start of the kept range, in milliseconds. |
trimEndMs | int | End of the kept range, in milliseconds. 0 means until the end. |
Without -, the CLI prints:
{
"mediaId": "019e1b73-32a4-8c9e-8bbf-3661a14a5716",
"status": "succeeded"
}Audio AI operations
Audio enhancement and voice extraction are direct inference workflows, not editor operations:
| Need | API endpoint | CLI command |
|---|---|---|
| Denoise or enhance audio | POST / | wonda audio enhance <video- |
| Isolate vocals from a track | POST / | wonda audio extract- |
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.