Skip to main content

Echo

The echo block adds an echo to an audio stream. The echo delay, intensity, and percentage of feedback can be configured.

Use Delay, Intensity and Feedback parameters to set the settings.

Block info

Name: EchoBlock.

Pin directionMedia typePins count
InputUncompressed audio1
OutputUncompressed audio1

The sample pipeline

UniversalSourceBlockEchoBlockAudioRendererBlock

Sample code

var pipeline = new MediaBlocksPipeline(false);

var filename = "test.mp3";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));

var echo = new EchoBlock();
pipeline.Connect(fileSource.AudioOutput, echo.Input);

var audioRenderer = new AudioRendererBlock();
pipeline.Connect(echo.Output, audioRenderer.Input);

await pipeline.StartAsync();

Platforms

Windows, macOS, Linux, iOS, Android.