{"repo":"EvandroLG/ts-audio","free":true,"listed":false,"github":"https://github.com/EvandroLG/ts-audio","clone":"git clone https://github.com/EvandroLG/ts-audio.git","description":":musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser","language":"TypeScript","stars":339,"topics":["audio","typescript","audiocontext-api","song","client-side"],"license":"MIT","category":"media-processing","readme_excerpt":"&middot; ts-audio is a lightweight, agnostic, and easy-to-use TypeScript/JavaScript library that simplifies working with the Web Audio API ( AudioContext ) and provides powerful playlist management capabilities. ✨ Features - Simple API - Abstracts the complexity of the Web Audio API - Cross-browser support - Works in all modern browsers - Playlist management - Create and manage audio playlists with advanced features - TypeScript support - Full type definitions included - Zero dependencies - Lightweight bundle - Event-driven - Built-in event system for audio state changes - Advanced controls - Volume, time, loop, shuffle, and more - Preloading support - Optimize performance with audio preloading 📦 Installation 🚀 Quick Start Basic Audio Player Audio Playlist 📚 API Reference Audio Component The Audio component provides control over a single audio file with full playback controls. Configuration Options Properties Property Type Description ------------- --------- ------------------------------------ duration number Total duration in seconds currentTime number Current playback position in seconds volume number Current volume level (0-1) loop boolean Whether audio is looping isPlaying boolean Current playback state Methods Method Description -------------------- ------------------------------------------------- play() Start or resume playback pause() Pause playback stop() Stop playback and reset to beginning toggle() Toggle between play/pause seek(time: number) Seek to specific t","default_branch":null,"files":null,"tree":[],"storefront":"/r/EvandroLG","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EvandroLG/ts-audio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}