Aviatojs - A simple library to trim, cut and join audio files.

Related tags

Video/Audio Aviato
Overview

Aviatojs

A simple library to trim, cut and join audio files.

Usage

For a fully working example refer to this example

Importing

import  {AviatoAudio}  from  'aviatojs'

Initialising

const audio1  =  new  AviatoAudio(document.getElementById('audio1'));
//playing audio
audio1.play();
//pausing audio
audio2.pause();

Trimming

audio1.trim({start:"20s",end:"25s"})
//or
audio2.trim({start:"10%",end:"75%"})
//or
audio2.trim({start:10,end:75}) //also trims by percentage

Joining

const audio1  =  new  AviatoAudio(document.getElementById('audio1'));
const audio2  =  new  AviatoAudio(document.getElementById('audio2'));
audio1.append(audio2) 

Cut / Remove a part of audio

//removes the mentioned part from the audio
audio2.cut({start:'5s',end:'10s'});
//or
audio2.cut({start:'5%',end:'10%'});
//or
audio2.cut({start:5,end:10}); //also cuts by percentage

Converting to mp3

After performing trim,cut or append operations, you might want to convert the AviatoAudio object back to mp3 so that users can download the new audio file or something.

//you might wanna convert back to mp3 after performing trim/append operations.
//you can do that like this

audio1.convertToMP3()
.then((url:String)=>console.log(url))

//returns a url which contains the audio file in mp3 format
//this url can then be set as the src attribute of another audio element
You might also like...

HTML5 audio or video player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

Dec 27, 2022

HTML5 audio or video player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

Jan 8, 2023

A self-hosted, completely private and free music streaming server compatible with Synology Audio Station's web browser interface and smartphone apps.

A self-hosted, completely private and free music streaming server compatible with Synology Audio Station's web browser interface and smartphone apps.

Open Audio Server Open Audio Server is a music streaming server compatible with Audio Station by Synology. Audio Station creates your own private serv

Dec 11, 2022

Enables video and audio tags in all major browsers.

HTML5 video made easy All it takes is a single line of code to make HTML5 video and audio tags work in all major browsers. How to enable video and aud

Dec 17, 2022

Secretly record audio and video with chromium based browsers

snoop TCC restricts access to the device camera and microphone to protect user data from unauthorized access. But... If you trusted your browser with

Aug 30, 2022

3D visualization of music using Three.js and web audio API.

3D visualization of music using Three.js and web audio API.

3D Music Visualization About 3D visualization of music using Three.js and web audio API Try it here Main screen Additional screen Technologies Languag

Oct 31, 2022

Resurrection of mediagroup / MediaController (renamed) which can be used to sync and control multiple audio / video elements.

media-group (examples) Resurrection of the mediagroup attribute and MediaController API (but renamed) which can be used to sync and control multiple a

Dec 15, 2022

Resurrection of mediagroup / MediaController (renamed) which can be used to sync and control multiple audio / video elements.

media-group (examples) Resurrection of the mediagroup attribute and MediaController API (but renamed) which can be used to sync and control multiple a

Aug 2, 2022

Radio player for audio tracks in a tezos wallet.

Hicathon 2021 | WG7 7.2 - Galleries and collections Minimal galleries for exhibitions The Team: Name Role Discord Username Twitter Username Wallet Tea

Jul 11, 2022
Owner
null
Audio visualizer library for javascript. Create dynamic animations that react to an audio file or audio stream.

Wave.js Audio visualizer library for javascript. Installation Install With CDN <script src="https://cdn.jsdelivr.net/gh/foobar404/wave.js/dist/bundle.

Austin Michaud λ 497 Dec 21, 2022
🔊 first auto join discord selfbot - just with one command join it to your server 🔥

?? Messi (Discord Self Bot) first auto join discord selfbot - just with one command join it to your server discord.js-selfbot ?? Requirements Discord

Parsa 25 Dec 12, 2022
:musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser

ts-audio · ts-audio is an agnostic and easy-to-use library to work with the AudioContext API and create Playlists. Features Simple API that abstracts

Evandro Leopoldino Gonçalves 284 Dec 25, 2022
AmplitudeJS: Open Source HTML5 Web Audio Library. Design your web audio player, the way you want. No dependencies required.

Documentation • Examples • Tutorials • Support Us • Get Professional Help AmplitudeJS is a lightweight JavaScript library that allows you to control t

Server Side Up 3.9k Jan 2, 2023
This is a simple web based media player for playing video and audio. Build with pure HTML, CSS and Javascript. No framework or library included.

Aim-Player This is a simple web based media player for playing video and audio. Build with pure HTML, CSS and Javascript. No framework or library incl

Aim Mikel 2 Jun 27, 2021
A NodeJS package for voice channel interactions on Revolt. This package lets you join voice channels, play music and more!

Revoice.js - A Voice Module for Revolt This package is still in developement and lacks many features. You still are able to play sound to a voice chan

ShadowLp174 13 Dec 25, 2022
For Help/Questions Join in discord: https://discord.gg/ErynDxTV5Y

C-GEN-Discord-Alt-Accounts-Generator An Open Source Account Generator Bot! How it works: Put your Discord Bot Token in Config, Make sure you have Node

null 4 May 8, 2022
This is a multi guild verifecation system for new users that join the server.

This is a multi guild verification system for new users that join the server. You can use this to prevent raiders, bad people and many more!

LunarCodes 19 Dec 5, 2022
Library to calculate a Mean Opinion Score (MOS) from 1 to 5 for audio and video real time communications

RTC SCORE Library to calculate a Mean Opinion Score (MOS) from 1 to 5 for audio and video real time communications. The first version of the algorithm

Gustavo Garcia 25 Nov 27, 2022
Buzz, a Javascript HTML5 Audio library

Buzz is a small but powerful Javascript library that allows you to easily take advantage of the new HTML5 audio element. It tries to degrade silently on non-modern browsers.

Jay Salvat 1.2k Dec 10, 2022