Audio Editing
Trim audio files by specifying start and end times.
POST
/api/v1/audio/editRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| operation | string | Yes | "audioTrim" |
| audioMediaId | string | Yes | Media ID of the audio file to trim |
audioTrim
Trim an audio file to a specific range. No mediaIds array needed -- pass the audio via audioMediaId instead. The gap between trimEndMs and trimStartMs must be at least 100 ms.
| Parameter | Type | Required | Description |
|---|---|---|---|
| trimStartMs | number | No | Start time in milliseconds (min 0, default 0) |
| trimEndMs | number | No | End time in milliseconds (min 100, optional). Must be >= trimStartMs + 100 |
Response
{
"editorJobId": "ej_..."
}Example
POST
/api/v1/audio/edit{
"operation": "audioTrim",
"audioMediaId": "media_audio",
"params": {
"trimStartMs": 1000,
"trimEndMs": 8000
}
}