Yuan Yuan
2018-07-25 20:28:26 UTC
Hi,
I'm looking for ways to use Web Audio javascript API to adjust pitch of the
music from a <video> or <audio> element.
I understand that if I use XMLHttpRequest to load a mp3 file, and then
use decodeAudioData to get the buffer of the audio data, then I can use the
SoundTouch library to adjust the pitch.
But I'm wondering whether I can directly do this from a <video> or <audio>
element.
I can create a media element source using createMediaElementSource, but I'm
not sure how to get the buffer from this source to pass to the soundtouch
library, or whether there are ways to adjust pitch without the need of
getting the buffer.
Any help would be appreciated.
Thank you very much.
Yuan
I'm looking for ways to use Web Audio javascript API to adjust pitch of the
music from a <video> or <audio> element.
I understand that if I use XMLHttpRequest to load a mp3 file, and then
use decodeAudioData to get the buffer of the audio data, then I can use the
SoundTouch library to adjust the pitch.
But I'm wondering whether I can directly do this from a <video> or <audio>
element.
I can create a media element source using createMediaElementSource, but I'm
not sure how to get the buffer from this source to pass to the soundtouch
library, or whether there are ways to adjust pitch without the need of
getting the buffer.
Any help would be appreciated.
Thank you very much.
Yuan
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+***@chromium.org.
To post to this group, send email to chromium-***@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+***@chromium.org.
To post to this group, send email to chromium-***@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.