dascritch / cpu-audio

An audio WebComponent to provide timecoded links and other features to an audio tag
https://dascritch.github.io/cpu-audio/
GNU Lesser General Public License v3.0
24 stars 2 forks source link

Put a soundwave form image alongside the timeline #6

Closed dascritch closed 5 years ago

dascritch commented 5 years ago

from https://github.com/dascritch/ondemiroir-audio-tag/issues/52

dascritch commented 5 years ago

Spectrogram generator: https://unix.stackexchange.com/questions/200168/how-to-create-the-spectrogram-of-many-audio-files-efficiently-with-sox sox sound.mp3 -n remix - spectrogram -o wave.png -x 2000 -y 65 -r -m tinypng # sox image is a little bit huge

or https://askubuntu.com/questions/536072/generate-waveform-image-for-audio-file

Please note that the images do not really need to be bigger than 4000px20px (21900 , 2*10). Be wise, resize and recompress.

You will also need an optional parameter in live chapter editor, it may helps ^^

dascritch commented 5 years ago

Need to create new tags in cpu-15 template theme

dascritch commented 5 years ago

Done there https://github.com/dascritch/plugin-dotclear-cpu-audio/commit/029382ffc2628ae551a64c7992712eb5394597d1