#Cannot render audio wave of file with wavesurfer.js from String (base64)

4 messages · Page 1 of 1 (latest)

vernal wasp
#

Can someone please explain to me how I can render an audiowave that is not a URL TO a file, but instead a stringo f base64 text that I recieved from a function.

unreal viper
#

In older versions it was possible to simple use the base64 string as the url for wavesurfer, it would look something like ```
"data:audio/mpeg;base64,blablabla"

Not sure if that still works.
#

by the way, you will very likely get help faster for questions unrelated to tauri to reach out to the respective frontend projects (in this case the community/maintainers of wavesurfer). There's always a pretty large chance that nobody here used library XY yet so we do the same you should do, and use google and github search to find something (that's what i just did)

vernal wasp
#

Thank you so much! That worked!