naomiaro / waveform-playlist

Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Add effects from Tone.js. Project inspired by Audacity.
https://naomiaro.github.io/waveform-playlist/
MIT License
1.47k stars 287 forks source link

How to load peaks.json for each audio #77

Open gjzhappy opened 7 years ago

gjzhappy commented 7 years ago

If I want to load the peaks from server,how to make this happen?

naomiaro commented 7 years ago

Hi! Currently there is no support for loading a peaks.json type of file from the server at the moment.

I have always been hoping to add this in using formats available from this BBC tool: https://github.com/bbc/audiowaveform

Not sure when there will be time for this in the near future however.

gjzhappy commented 7 years ago

Actually I already generate the json file in server,but I can't find a method to load it as wavefurfer does.Is it possible to offer a method like load(mp3,json)?

naomiaro commented 7 years ago

It is possible, I'd like to add this functionality sometime soon. What format are you using for your json peaks file?

gjzhappy commented 7 years ago

I really appreciate your help ! Any format is OK as long as i can get the peak value.

entonbiba commented 6 years ago

@gjzhappy @naomiaro I created an api for audio to waveform json data output. https://waveform.al