returns an audio object by overlaying all audioi.

Details and Options

  • When overlaying audio objects, channel of the resulting audio is an overlay of all ^(th) channels of all audioi that have at least channels. The overlaid values are accumulated.
  • All audioi are conformed to have the same duration, data type, number of channels, and sample rate.
  • AudioOverlay takes a SampleRate option to specify the sample rate of the resulting Audio object. By default, the highest sample rate available is used.


open allclose all

Basic Examples  (2)

Overlay two audio objects:

Overlay two audio signals using a specified offset:

Spectrogram of the overlaid signal:

Scope  (4)

Control the offset between the audio objects to be overlaid:

Overlay audio objects with different types:

Overlay audio objects with different sample rates:

Join audio objects with different numbers of channels:

Options  (1)

SampleRate  (1)

The SampleRate option can be used to control the sample rate of the result:

Introduced in 2016