1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

audiovideo → Cut Audio File

AI-generated

Overview

The Cut Audio File operation in the "audiovideo" resource of this n8n node allows users to extract a specific segment from an audio file. This is achieved by specifying the start time and duration for the cut, either by providing a direct URL to the media file or uploading the file itself. The node is useful in scenarios such as:

  • Creating audio snippets for podcasts or social media.
  • Extracting highlights from interviews or lectures.
  • Automating the trimming of long recordings into manageable segments.

Practical Example:
A user can automate the process of cutting a 30-second highlight from a recorded webinar by specifying the start time and duration, then use the output in subsequent workflow steps (e.g., upload to cloud storage or send via email).


Properties

Name Meaning
URL The URL of the media file to be cut. Must be accessible from the internet.
Media file The media file to be cut. Used when uploading a file directly instead of a URL.
Start time in Seconds The starting point (in seconds) from which to begin the cut. Required.
Duration The length (in seconds) of the audio segment to extract. Defaults to 60 seconds if not specified.

Output

  • Binary Data:
    The node outputs the cut audio segment as binary data. The binary property will contain the resulting audio file, with its filename and content type set according to the response from the API.

  • JSON Output (on error):
    If an error occurs, the output will include a JSON object with an error field describing the issue.


Dependencies

  • External Service:
  • API Key:
    • Needs valid credentials for the 1001fxApi.
  • n8n Configuration:
    • The node must be configured with the appropriate API credentials in n8n.

Troubleshooting

Common Issues:

  • Invalid or Inaccessible URL:
    If the provided URL is not reachable or does not point to a valid media file, the operation will fail.
  • Missing Required Fields:
    Omitting the "Start time in Seconds" property will result in an error, as it is required.
  • File Upload Problems:
    If uploading a file, ensure the file is correctly attached and in a supported format.

Error Messages:

  • "error": "..."
    The output JSON will include an error field with details about what went wrong. Check the message for hints (e.g., authentication issues, invalid parameters).

Links and References

Discussion