audio-cutter
Reactive icon

Audio Cutter

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 2 Sep (13 hours ago)
 by 
0.0
 (0 ratings)
audio-cutter

Audio Cutter

Details
Audio Cutter is a client-side audio processing component that allows applications to trim audio files by specifying start and end times. It supports exporting the selected audio segment in MP3 or WAV format, with configurable MP3 bitrate. Audio processing is performed directly in the browser without requiring server-side audio processing.
Read more

Audio Cutter is a reusable OutSystems component for trimming audio files directly in the user's browser. It allows applications to select a specific portion of an audio file by providing start and end positions and export the selected segment in MP3 or WAV format.

The component uses browser-based audio processing capabilities to decode, trim, and encode audio without requiring server-side audio processing. This makes it suitable for scenarios where audio files need to be trimmed within an OutSystems application while keeping the processing on the client side.

Features

  • Trim audio files by specifying start and end positions in seconds.
  • Support for MP3 and WAV output formats.
  • Configurable MP3 bitrate with support for 64, 96, 128, 160, 192, 256, and 320 kbps.
  • Returns the processed audio as Binary Data, making it easy to store, download, or further process within an OutSystems application.
  • Returns the duration of the resulting audio segment.
  • Provides success and error information to allow applications to handle processing results appropriately.
  • Performs audio processing entirely on the client side using browser audio capabilities.
  • Includes static entities for the supported audio formats and MP3 bitrate options, making it easier for consumers to configure the component.

Usage

The component exposes a CutAudio Client Action. Provide the source audio as Binary Data along with the desired start and end positions, output format, and optional MP3 bitrate. The action processes the selected portion of the audio and returns the resulting audio as Binary Data.

For MP3 output, the component uses the included LameJS library for client-side MP3 encoding. WAV output is generated using client-side PCM/WAV encoding.

Validation

The component validates the supplied audio and trimming parameters before processing. Start and end positions must represent a valid audio segment, and the requested output format must be supported. If processing fails, the action returns an error message through its output parameters.

Demo Application

The accompanying Audio Cutter Demo application demonstrates how to integrate the component into an OutSystems application. It provides a simple interface for selecting an audio file, configuring the trimming range and output format, and generating the resulting audio file.

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category