AudioRecorder Op

AudioRecorder

record, playback and download audio


<p>This op let&#39;s you record any webaudio stream in your patch.</p> <p>How to use:</p> <ol> <li>Connect audio to the input</li> <li>Click/Trigger &quot;Start Recording&quot;</li> <li>Record as long as you want</li> <li>Click/Trigger &quot;Stop Recording&quot;</li> <li>The recorded audio will be processed</li> <li>To playback the recorded loop, connect the &quot;Recorded Out&quot; output and click &quot;Start Playback&quot;</li> <li>To download, click &quot;Download .wav file&quot;</li> <li>To stop playback, click &quot;Stop Playback&quot;</li> <li>If you want to delete what you recorded, press &quot;Clear Buffer&quot;</li> </ol> <p>The AudioRecorder has 5 states:</p> <p>&quot;idling&quot; - there is nothing in the recording buffer, nothing is playing back &quot;recording&quot; - the recorder is currently recording &quot;processing&quot; - the recorder is currently processing the recorded audio &quot;ready&quot; - the recorder is ready to play back/download &quot;playing&quot; - the recorder is currently playing back the recorded audio</p>


Full Name
  • Ops.WebAudio.AudioRecorder
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch AudioRecorder example

AudioRecorder OP allows you to record an audio source and download the audio as a file.

In this example an mp3 file is the sound source of the AudioRecorder OP.

Trigger Playback of the sound source by pressing the Play button in the middle of the patch screen, then press Start Recording in the Sidebar. After stopping the recording and the source audio, you can preview your recorded audio buffer loop by pressing start and stop playback.

In this example the sound source is panned to the left and recorded audio will be on the right.

Open In Editor

INPUT PORTS


Audio In (Object:audioNode)

<p>audio input</p>

Recording

Start Recording (Trigger)

<p>click/trigger to start recording</p>

Stop Recording (Trigger)

<p>click/trigger to stop recording</p>

Input Gain (Number)

<p>volume of incoming audio</p>

Playback

Start Playback (Trigger)

<p>click/trigger to start playback</p>

Stop Playback (Trigger)

<p>click/trigger to stop playback</p>

Clear Buffer (Trigger)

<p>click/trigger to clear buffer (revert to &quot;idling&quot; state)</p>

Playback Gain (Number)

<p>volume of recorded audio playback</p>

Loop Playback (Number:

<i>boolean</i>

)

<p>check to loop the playback of the recorded audio</p>

Download .wav File (Trigger)

<p>click/trigger to download the recorded file</p>

OUTPUT PORTS


Audio Out (Object)

<p>audio output, pass through for incoming signal</p>

Recorded Audio Out (Object)

<p>output of the recorded audio</p>

Is Recording (

<i>boolean</i>

Number)

<p>true if currently recording</p>

Is Playing Back (

<i>boolean</i>

Number)

<p>true if currently playing back</p>

State (String)

<p>one of 5 states: &quot;idling&quot;, &quot;recording&quot;, &quot;processing&quot;, &quot;ready&quot;, &quot;playing&quot;</p>

AudioBuffer Out (Object)

<p>audiobuffer output</p>

Data URL (String)

Patches using AudioRecorder

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarsimod - 2021-03-02 13:01
Ops.User.simod.AudioRecorder renamed to Ops.WebAudio.AudioRecorderuser avatarsimod - 2021-03-02 13:25