public class ActivityDetector extends Object
The following model is used to find active and silent zones: The input signal is divided into segments according to whether the signal envelope level is above or below the threshold level. These segments are classified into the following types:
"undef" segments are then eliminated using the following rules:
The resulting "active" segments are combined into the active zones.
| Constructor and Description |
|---|
ActivityDetector(float thresholdLevel,
int minActivityLen,
int minSilenceLen)
Creates an activity detector.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
process(float[] signalEnvelope)
Processes the signal envelope and returns the positions of the active zones.
|
public ActivityDetector(float thresholdLevel,
int minActivityLen,
int minSilenceLen)
thresholdLevel - The threshold signal envelope level to distinguish activity from silence.minActivityLen - The minimum number of samples for an "active" segment.minSilenceLen - The minimum number of samples for a "silence" segment.public int[] process(float[] signalEnvelope)
signalEnvelope - The envelope of the input signal.