W3C home > Mailing lists > Public > public-audio-dev@w3.org > March 2013

Re: is it possible to render audio into a file?

From: Chris Wilson <cwilso@google.com>
Date: Fri, 1 Mar 2013 09:15:28 -0800
Message-ID: <CAJK2wqX95j+WuYATQnDxKC+yW1FxyQZAMe-xh3_aP6yyaZTyrA@mail.gmail.com>
To: Joseph Berkovitz <joe@noteflight.com>
Cc: Andy Kelley <superjoe30@gmail.com>, public-audio-dev@w3.org
You can check out the code to Matt Diamond's RecorderJS, which includes an
AudioBuffer->WAV function.  (I'd use the OfflineAudioContext to render if
you can.)


On Fri, Mar 1, 2013 at 6:16 AM, Joseph Berkovitz <joe@noteflight.com> wrote:

> Hi Andy,
>
> I think you want this:
>
>
> https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioContext-section
>
> The OfflineAudioContext object (accessible as "webkitOfflineAudioContext"
> in Chrome) allows you to asynchronously render any graph into an
> AudioBuffer. The encoding step into an audio format isn't supported by Web
> Audio yet AFAIK but it's easy to write a WAV encoder using typed arrays.
>
> ... .  .    .       Joe
>
> *Joe Berkovitz*
> President
>
> *Noteflight LLC*
> Boston, Mass.
> phone: +1 978 314 6271
> www.noteflight.com
> "Your music, everywhere"
>
> On Mar 1, 2013, at 12:22 AM, Andy Kelley <superjoe30@gmail.com> wrote:
>
> I can create a complex graph of nodes and have it play the sound over my
> speakers. But is it also possible to render that sound programmatically so
> that a user can download (or upload) a wave file?
>
>
>
>
Received on Friday, 1 March 2013 17:15:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 March 2013 17:15:56 GMT