Skip to content

MediaStreamAudioSourceNode

Hans Lindetorp edited this page Mar 10, 2021 · 1 revision

The MediaStreamAudioSourceNode lets you stream the audio input into your audio configuration. The output from the Node (e.g. the microphone input signal) is routed similar to any other nodes using either a Chain or Mixer order.

Attributes:

none

Example

This snippet takes the audio input and sends the signal to a ConvolverNode reverb. Both the dry and the wet signals are mixed together to the main output.

<?xml version="1.0" encoding="UTF-8"?>
<Audio version="1.0" timeUnit="ms" interactionArea="#touchArea" gain="-10dB">
  <Chain>
    <MediaStreamAudioSourceNode></MediaStreamAudioSourceNode>
    <Send output="#reverb"></Send>
  </Chain>
  <ConvolverNode id="reverb" src="audio/large-bottle-hall.wav"></ConvolverNode>
</Audio>

Read more: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode

Clone this wiki locally