Ilyworks icon

Ilyworks

Transform images and video with the Ilyworks media API

Audio → Trim

AI-generated

Summary

Cut an audio file to a specific time range defined by start and end seconds, optionally specifying input as a URL or a binary property and outputting in a chosen audio format.

Inputs

  • Audio URL — URL of the source audio file. Leave empty to use a binary input instead.
  • Binary Property — Name of the binary property containing the audio or video file to trim, used if Audio URL is empty.
  • Output Format (required) — Format for the trimmed audio output. Options include AAC, FLAC, M4A, MP3, OGG, Opus, and WAV.
  • Trim Start (Seconds) (required) — Start position in seconds from which to begin trimming the audio.
  • Trim End (Seconds) (required) — End position in seconds at which to stop trimming the audio.

Output shape

a single JSON response object

Returns a JSON object containing details of the trimmed audio. The output does not include binary data of the audio file itself but metadata or URLs as returned by the Ilyworks API.

Examples

Example 1: Trimming audio from a URL

Provide the audio file URL, set trim start and end times, and select output format. The node will trim the audio accordingly and return a JSON with the result.

Example 2: Trimming audio from binary data

Leave the Audio URL empty and specify the binary property containing the audio file. Specify start/end times and output format. The node trims the binary audio file and returns a JSON response.

Links

Discussion