How to export audioBuffer with specified speed? #3524
-
I can change playback speed with:
But the audioBuffer exported by:
Still maintains the original speed. I want to export a wave file with a specified speed and preserve pitch. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, 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. |
Beta Was this translation helpful? Give feedback.
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.