Ilyworks icon

Ilyworks

Transform images and video with the Ilyworks media API

Audio → Convert

AI-generated

Summary

Convert audio files to a specified format with optional adjustments such as bitrate, channels, normalization, sample rate, and trimming of start/end times.

Inputs

  • Audio URL — URL of the source audio; if left empty, the node uses the provided binary input for the audio file.
  • Binary Property — Name of the binary property containing the audio or video file to convert when no URL is provided (default is 'data').
  • Output Format (required) — Desired output audio format, selectable from AAC, FLAC, M4A, MP3 (default), OGG, Opus, or WAV.
  • Audio Options — Optional settings including bitrate (e.g., 128k, 192k), channels (Keep Original, Mono, Stereo), audio normalization (boolean), sample rate in Hz (0 to keep original), trim start (seconds), and trim end (seconds).

Output shape

a list of JSON objects each containing the API response from the audio conversion endpoint

If an Audio URL is provided, the conversion is performed on the remote file URL; otherwise, the node uploads and converts the binary audio data. The returned JSON might include details or links to the converted audio depending on the API response. Errors are thrown if the operation fails unless 'Continue On Fail' is enabled.

Examples

Example 1: Convert an audio file from URL to MP3 format with stereo channels and normalization enabled.

Set Audio URL to the source audio link, choose Output Format as MP3, set Channels to Stereo, and enable Normalize Audio.

Example 2: Convert an uploaded binary audio file to WAV format with 320k bitrate and trimmed start/end times.

Leave Audio URL empty, set Binary Property to the binary input containing the audio, select Output Format as WAV, specify Bitrate as '320k', and enter desired Trim Start and Trim End times in seconds.

Links

Discussion