Skip to content

How to export audioBuffer with specified speed? #3524

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

You must be logged in to vote

Yes, getDecodedData returns the original low-sample-rate decoded audio used for the rendering. Changing the playback rate doesn't affect it. If you want to speed up the audio, you'd have to resample the audio yourself.

Generally, wavesurfer.js doesn't aim to be a wrapper for all things Web Audio. It's just a visualization + player. It does allow connecting itself to a Web Audio graph by exporting its audio element (see this example) but nothign more than that. So please don't expect wavesurfer to cut, add effects, or process your audio in any other way.

Replies: 1 comment 2 replies

Comment options

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

@katspaugh
Comment options

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