FSilenceDetection

This object will return buffered audio while the input signal is louder than the specified threshold, and buffer audio when the input signal otherwise.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/VoiceProcessing.h

Include

#include "DSP/VoiceProcessing.h"

Syntax

class FSilenceDetection

Remarks

This object will return buffered audio while the input signal is louder than the specified threshold, and buffer audio when the input signal otherwise.

Constructors

Name Description

Public function

FSilenceDetection

(
    float InOnsetThreshold,
    float InReleaseThreshold,
    int32 AttackDurationInSamples,
    int32 ReleaseDurationInSamples
)

InOnsetThreshold is the minimum amplitude of a signal before we begin outputting audio, in linear gain.

Functions

Name Description

Public function

float

 

GetCurrentAmplitude()

Returns the current estimate of the current amplitude of the input signal, in linear gain.

Public function

int32

 

ProcessBuffer

(
    const float* InAudio,
    float* OutAudio,
    int32 NumSamples
)

Buffers InAudio and renders any non-silent audio to OutAudio.

Public function

void

 

SetThreshold

(
    float InThreshold
)

Set the threshold of audibility, in terms of linear gain.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss