Full Playback Control
Play, pause, resume, stop, and seek individual sounds. Fine-grained control over volume, pan, looping, and fading — plus global controls for your entire sound scene.
A powerful, type-safe TypeScript wrapper for the Web Audio API.
Manage sound effects, music, and spatial audio with ease.
Free to use.
From simple playback to complex 3D audio scenes SoundManager TS has you covered.
Play, pause, resume, stop, and seek individual sounds. Fine-grained control over volume, pan, looping, and fading — plus global controls for your entire sound scene.
Batch-control multiple sounds at once with named groups. Create, manage, and remove sound groups effortlessly.
Define audio sprites to serve several tracks from a single file. Configure sprite regions, retrieve configs, and remove sprites as needed.
Built on the Web Audio API. Pan sounds in stereo or position them in full 3D space using the Panner node for immersive audio experiences.
Get started with just a few lines of code.
import SoundManager from 'sound-manager-ts';
const sm = new SoundManager({ /* config */ });
await sm.loadSound('click', '/sounds/click.mp3');
sm.play('click', { volume: 0.8, loop: false });
From zero to playing sounds in under a minute.
npm install sound-manager-ts
Create a SoundManager instance with your settings.
Load and play sounds with a single line of code.
Dive into the docs and start building immersive audio experiences today.