Play Sounds in 3 Lines
Load and play audio files, create synthesizers, or build drum machines. No Web Audio boilerplate needed.
Play sounds, create synthesizers, build drum machines, and visualize audio — all with zero dependencies and full TypeScript support.
EZ Web Audio is a TypeScript library that wraps the Web Audio API with a simpler interface. Instead of dealing with AudioContext, AudioBufferSourceNode, and GainNode directly, you write clean, readable code:
import { createSound } from 'ez-web-audio'
const sound = await createSound('/audio/click.mp3')
sound.play()From simple sound effects to full synthesizers with ADSR envelopes, EZ Web Audio handles the complexity so you can focus on creating.