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 your_object_name_here.play(start_time,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!
wavesurfer -- JavaScript audio with wave visualisation
-
- Black Belt - 4th Dan
- Posts: 4153
- Joined: Thu Jul 30, 2015 11:04 am
- Location: Scotland
- Languages: English(N)
Advanced: French,Spanish, Scottish Gaelic
Intermediate: Italian, Catalan, Corsican
Basic: Welsh
Dabbling: Polish, Russian etc - x 9878
- Contact:
-
- Orange Belt
- Posts: 228
- Joined: Sun Feb 26, 2017 4:01 pm
- Languages: English (native); strong reading skills - Russian, Spanish, French, Italian, German, Serbo-Croatian, Macedonian, Bulgarian, Slovene, Farsi; fair reading skills - Polish, Czech, Dutch, Esperanto, Portuguese; beginner/rusty - Swedish, Norwegian, Danish
- x 590
Re: wavesurfer -- JavaScript audio with wave visualisation
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?
0 x
Who is online
Users browsing this forum: No registered users and 2 guests