Navigation
API > API/Runtime > API/Runtime/SignalProcessing
This object will return buffered audio while the input signal is louder than the specified threshold, and buffer audio when the input signal otherwise.
| Name | FSilenceDetection |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/VoiceProcessing.h |
| Include Path | #include "DSP/VoiceProcessing.h" |
Syntax
class FSilenceDetection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| DSP/VoiceProcessing.h | |||
FSilenceDetection
(
float InOnsetThreshold, |
InOnsetThreshold is the minimum amplitude of a signal before we begin outputting audio, in linear gain. | DSP/VoiceProcessing.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Averager | FMovingVectorAverager | DSP/VoiceProcessing.h | ||
| bOnsetWasInLastBuffer | bool | DSP/VoiceProcessing.h | ||
| CurrentAmplitude | float | DSP/VoiceProcessing.h | ||
| OnsetThreshold | float | DSP/VoiceProcessing.h | ||
| ReleaseTau | float | DSP/VoiceProcessing.h | ||
| ReleaseThreshold | float | DSP/VoiceProcessing.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetCurrentAmplitude() |
Returns the current estimate of the current amplitude of the input signal, in linear gain. | DSP/VoiceProcessing.h | |
int32 ProcessBuffer
(
const float* InAudio, |
Buffers InAudio and renders any non-silent audio to OutAudio. | DSP/VoiceProcessing.h | |
void SetThreshold
(
float InThreshold |
Set the threshold of audibility, in terms of linear gain. | DSP/VoiceProcessing.h |