Created
July 26, 2024 10:17
-
-
Save katspaugh/02daa0b4592c3120d333872fd176f04f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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