Page 1 of 1

wavesurfer -- JavaScript audio with wave visualisation

Posted: Thu Jan 04, 2018 10:17 pm
by Cainntear
Hi, I'm working on a wee project I think many of you will find useful (more to follow in a few days when I have my prototype up and running) but I thought I'd share a link to a nice little Javascript module I'm using to build this on: wavesurfer.js.

Its main selling point is the on-screen waveform visualisation options, which lets you seek quickly through a file (handy for language stuff), but I think I'll be using it a lot even when I don't need the visualisation, because it gives you a lot more control over playback than the bog-standard HTML5 AUDIO object controls (e.g. you can play just a short section of a file by calling,end_time), and I'm still baffled as to why that didn't make it into the HTML5 spec). (Sadly, the library suffers memory leaks that haven't been debugged yet, so caveat emptor.)

Hope this is useful to some of you!

Re: wavesurfer -- JavaScript audio with wave visualisation

Posted: Mon Oct 05, 2020 12:54 am
by mcthulhu
Thank you for the recommendation. I've just incorporated wavesurfer.js into Jorkens, to play audio books while reading the text, and it seems to work pretty well (though I'm sure I'll be doing some tweaking). What was the project that you were using it for?