Skip to content

Instantly share code, notes, and snippets.

@katspaugh
Created July 26, 2024 10:17
Show Gist options
  • Save katspaugh/02daa0b4592c3120d333872fd176f04f to your computer and use it in GitHub Desktop.
Save katspaugh/02daa0b4592c3120d333872fd176f04f to your computer and use it in GitHub Desktop.
import WaveSurfer from 'wavesurfer.js'
const wavesurfer = WaveSurfer.create({
container: document.body,
waveColor: 'rgb(200, 0, 200)',
progressColor: 'rgb(100, 0, 100)',
url: '/examples/audio/stereo.mp3',
splitChannels: true,
mediaControls: true,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment