- From: Chris Wilson <cwilso@google.com>
- Date: Tue, 15 Jan 2013 15:15:29 -0800
- To: Chris Rogers <crogers@google.com>
- Cc: Yury Delendik <ydelendik@mozilla.com>, "public-audio@w3.org" <public-audio@w3.org>
- Message-ID: <CAJK2wqW6TfA=_pQRVQPBWW9zJZhKcFa945JasjZ0NsuVVAzhrQ@mail.gmail.com>
To be clear: The <audio> element streams the data from the network, playing it at normal speed - MediaElementAudioSourceNode is how you grab the output of that and apply effects to it (before sending it to the "speakers"). On Tue, Jan 15, 2013 at 2:48 PM, Chris Rogers <crogers@google.com> wrote: > > > On Tue, Jan 15, 2013 at 12:57 PM, Yury Delendik <ydelendik@mozilla.com>wrote: > >> On 1/15/2013 2:42 PM, Chris Rogers wrote: >> >> >> >> On Tue, Jan 15, 2013 at 10:45 AM, Yury Delendik <ydelendik@mozilla.com>wrote: >> >>> On 1/15/2013 12:27 PM, Ralph Giles wrote: >>> >>>> On 13-01-15 5:55 AM, Yury Delendik wrote: >>>> >>>>> Hello, >>>>> >>>>> Is there a way to decode the audio data in chunks? >>>>> >>>> I don't know about WebAudio, but are you aware of the MediaSource draft? >>>> It proposes something like this. >>>> >>>> >>>> https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html >>>> >>>> -r >>>> >>>> Thank you. That's closer to what I'm looking for. >>> >>> But to be on a par with flash or implement some fancy audio player, some >>> basic sound transform may be applied to the audio (e.g. [1]). Also, it will >>> be useful to extract the sound data from the encoded audio [2] or compute >>> spectrum [3]. >>> >>> [1] >>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundTransform.html >>> [2] >>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html#extract%28%29 >>> [3] >>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundMixer.html#computeSpectrum%28%29 >> >> >> There is the MediaElementAudioSourceNode to let you apply effects or >> visualize from an <audio> element: >> >> https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaElementAudioSourceNode >> >> >> I don't quite understand the complete solution. Do you suggest to use >> Media Source Extensions to build the stream, play the audio element with >> normal speed, get the data using the MediaElementAudioSourceNode, apply >> effects and playback the final audio using Web Audio? I think it's a little >> bit inefficient. >> > > Aren't you talking about doing exactly the same processing, but via a > different proposed API. I'm not sure I understand why it would be less > efficient. > > >
Received on Tuesday, 15 January 2013 23:15:57 UTC