AudioDspFrame class
A single analysis frame emitted by the DSP processor per analysis window.
Contains amplitude, envelope, and gate information extracted from the filtered audio signal.
Constructors
- AudioDspFrame({required double rmsAmplitude, required double peakAmplitude, required double envelopeAttackMs, required double envelopeSustainMs, required bool isAboveGate, required DateTime timestamp})
-
const
-
AudioDspFrame.fromJson(Map<
String, dynamic> json) -
factory
Properties
- envelopeAttackMs → double
-
Time in milliseconds from gate opening to peak amplitude.
Short attack (<150ms) indicates impulsive sounds (movement).
Long attack (>800ms) indicates gradual sounds (breathing).
final
- envelopeSustainMs → double
-
Duration in milliseconds the signal stayed above the noise gate
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAboveGate → bool
-
Whether the signal exceeded the noise gate threshold
final
- peakAmplitude → double
-
Peak amplitude of the filtered window, normalized 0.0-1.0
final
- rmsAmplitude → double
-
RMS amplitude of the filtered window, normalized 0.0-1.0
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
When this frame was captured
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
silent(
DateTime timestamp) → AudioDspFrame - A silent/empty frame