DartBridgeVAD class
VAD component bridge for C++ interop.
Provides thread-safe access to the C++ VAD component. Handles voice activity detection with configurable thresholds.
Usage:
final vad = DartBridgeVAD.shared;
vad.initialize();
vad.start();
final isSpeech = vad.process(audioSamples);
Properties
-
activityStream
→ Stream<
VADActivityEvent> -
Stream of speech activity events
no setter
- energyThreshold ↔ double
-
Get current energy threshold.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Check if VAD is initialized.
no setter
- isSpeechActive → bool
-
Check if speech is currently detected.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanup(
) → void - Cleanup VAD.
-
destroy(
) → void - Destroy the component and release resources.
-
dispose(
) → void - Dispose resources.
-
getHandle(
) → RacHandle - Get or create the VAD component handle.
-
initialize(
) → Future< void> - Initialize VAD.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
Float32List samples) → VADResult - Process audio samples for voice activity.
-
reset(
) → void - Reset VAD state.
-
start(
) → void - Start VAD processing.
-
stop(
) → void - Stop VAD processing.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
Shared instance
final