Reference
?

trimMedia

Trim an audio or video clip
mindstudio.trimMedia({ inputUrl }) → Result

Cuts an audio or video clip to a start and end time, returning the trimmed file.

Parameters
inputUrl
string
RequiredURL of the source audio or video file to trim
start
number | string
Start position in seconds for the trim
duration
string | number
Duration of the trimmed segment in seconds. Omit to trim to the end of the clip.
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.trimMedia({
  inputUrl: /* ... */
});