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

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 14:16:28 UTC