AudioCapture class abstract

Abstract base class for audio capture functionality.

This class defines the common interface for capturing audio from different sources (microphone or system audio). Implementations include MicAudioCapture and SystemAudioCapture.

Example:

final audioCapture = MicAudioCapture();
await audioCapture.initialize();
await audioCapture.startCapture();

// Listen to audio stream
audioCapture.audioStream?.listen((audioData) {
  // Process audio data
});

// Stop when done
await audioCapture.stopCapture();
await audioCapture.dispose();
Implementers

Constructors

AudioCapture()

Properties

hashCode int
The hash code for this object.
no setterinherited
isRecording bool
Whether the audio capture is currently recording.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited