Skip to content

Using Wavesurfer as a front end UI only, no audio source. Looking for advice on coding this feature. #3571

Answered by katspaugh
KaleSurfer asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @KaleSurfer, thank you for the generous donation! ❤️

Wavesurfer already supports a slient mode (since 7.7.0). You can just skip the url and only provide peaks and duration, and it will render a waveform.
See https://wavesurfer.xyz/examples/?28c9974160c53983e6d6d5286e0f0558

Alternatively, you can do it with load like this:

wavesurfer.load('', peaks, duration)

Let me know if this works for your use case, happy to adjust the API.

Cheers!

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@KaleSurfer
Comment options

Answer selected by KaleSurfer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@KaleSurfer
Comment options

@katspaugh
Comment options

@KaleSurfer
Comment options

Comment options

You must be logged in to vote
2 replies
@dgorgone
Comment options

@katspaugh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants