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

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

From: Joseph Berkovitz <joe@noteflight.com>
Date: Fri, 1 Mar 2013 09:16:00 -0500
Cc: public-audio-dev@w3.org
Message-Id: <0D8DA7C0-C999-4F37-BE46-93DA3475FB8D@noteflight.com>
To: Andy Kelley <superjoe30@gmail.com>
Hi Andy,

I think you want this:


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

Noteflight LLC
Boston, Mass.
phone: +1 978 314 6271
"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 14:16:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:43:28 UTC