About this project

ringtone-slicer is a lightweight JavaScript library designed for browser-based audio manipulation. It allows developers to slice audio clips based on start and end times, apply linear fade-in and fade-out envelopes, and encode the resulting audio into a standard 16-bit PCM WAV format. Key capabilities include: - Audio Slicing: Extract specific segments of audio using time-based parameters. - Fade Effects: Support for optional linear fade-in and fade-out to prevent abrupt audio cuts. - WAV Encoding: Conversion of sliced audio data into a Uint8Array containing a 16-bit PCM WAV file. - Channel Support: Compatibility with both mono and multi-channel audio. - AudioBuffer Integration: Ability to convert sliced clips back into native browser AudioBuffer objects. The library is designed to be dependency-free and operates on decoded audio data, meaning it does not handle the initial decoding of compressed formats (like MP3 or AAC) or the encoding of compressed exports, relying instead on the browser's native AudioContext for decoding.