✨ Features
- HTML5 Audio and Web Audio support
- Responsive and customizable waveforms
- Highly extensible with plugins
- TypeScript API – see the documentation
<div id="waveform">
<!-- the waveform will be rendered here -->
</div>
<script type="module">
import WaveSurfer from 'https://cdn.jsdelivr.net/npm/wavesurfer.js@7/dist/wavesurfer.esm.js'
const wavesurfer = WaveSurfer.create({
container: '#waveform',
waveColor: '#4F4A85',
progressColor: '#383351',
url: '/audio.mp3',
})
wavesurfer.on('interaction', () => {
wavesurfer.play()
})
</script>
Discover how to use wavesurfer.js with our comprehensive TypeScript API documentation.
Explore the API DocsWe'd like to thank all our contributors for their hard work and dedication to making wavesurfer.js the best audio visualization library out there.
View Contributors on GitHub