kopiro / siriwave

The Apple® Siri wave-form replicated in a JS library.
http://kopiro.github.io/siriwave/
MIT License
1.63k stars 168 forks source link

How to Integrate siriwave with audio/mp3 file #33

Closed timi-codes closed 4 years ago

timi-codes commented 5 years ago

Maybe something around this

const waveInstance = new SiriWave({
      container: wave.current,
      speed: 0.02,
      cover: true
 });
waveInstance.setAudioUrl('url');
lbarthon commented 4 years ago

Maybe you can combine it with howler?

kopiro commented 4 years ago

Hey! This library is purely graphical, so I don't it makes sense to add an API to read an Audio. There is a working demo here anyway: https://github.com/kopiro/siriwave/issues/45