audioStream property

Stream<Uint8List>? get audioStream

Stream of raw audio data bytes from system audio capture.

Returns a Stream<Uint8List> containing the captured audio data. The stream is only available after startCapture has been called.

Example:

await systemCapture.startCapture();

systemCapture.audioStream?.listen((audioData) {
  // Process audio bytes
  final audioBuffer = audioData.buffer.asUint8List();
  // Use audio buffer for processing, saving, etc.
});

Implementation

Stream<Uint8List>? get audioStream => _audioStream;