W3C home > Mailing lists > Public > public-audio-dev@w3.org > February 2015

Re: Record and play tracks in Web Audio Api

From: Josh Nielsen <josh@joshontheweb.com>
Date: Fri, 20 Feb 2015 12:09:20 -0700
Message-ID: <CAMgQFxDo4gDYM1UfbxLigDmrTNUfBAApSNo0zZ4oox4pw8Ke8w@mail.gmail.com>
To: Michele Cipriani <cipriani.ceo@dropin.fm>
Cc: public-audio-dev@w3.org
There isn't a built-in node for this in the web audio api but you can make
it happen using https://github.com/mattdiamond/Recorderjs.  Essentially it
is just using a script processor node to grab and store chunks of
float32Array data (PCM).  Then it writes a wav header to the beginning.

On Fri, Feb 20, 2015 at 8:01 AM, Michele Cipriani <cipriani.ceo@dropin.fm>

> Hello,
> in a web app which creates a web audio api audio context and preload some
> audio sources, i want to let users to record from their device and use the
> recorded track in the audio context, as a preloaded source.
> I have a lot of questions about this but the most important are the
> following:
> - What is the best way to record in web audio api html, RTC?
> - are the track recorded in wav, are them at high quality?
> - may i record tracks and use them as they are preloaded sources without
> saving them to the server, in order to upload them only at the end?
> Any help is really appreciated.
> Best,
> Michele
> Twitter: ciprianimich

Josh Nielsen
@joshontheweb <http://twitter.com/joshontheweb>
Received on Friday, 20 February 2015 19:10:11 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 February 2015 19:10:12 UTC