read audio preparation
audio-trims_getRead the status of an audio trim by ID and poll it until processing completes or fails, returning the resulting asset ID, actual duration, error code, and retry delay.
Instructions
Read one audio trim by the id audio-trims_create returned, to follow it until it ends; jobs_get and jobs_wait do not read audio trims. Returns its status; once completed, the assetId (the same value as this id) and actual durationSeconds of the new shortened audio asset, both null before; once failed, its errorCode; and retryAfterMs, the wait before the next read.
While it is queued or processing, call again after retryAfterMs milliseconds; never create another trim. When completed, use the new assetId and its actual duration in place of the original audio. If it failed, tell the user the errorCode; another trim needs an explicit new attempt with audio-trims_create. An API error returns {error: {message, status, code when given}} instead. It never starts video generation or spends credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id that audio-trims_create returned (a UUID). Poll with this same id until the trim is completed or failed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||