audio_recorder_service.dart 499 B

1234567891011121314151617
  1. import 'dart:async';
  2. import 'dart:typed_data';
  3. /// An abstract class that defines the contract for an audio recording service.
  4. abstract class AudioRecorderService {
  5. /// A stream of recorded audio chunks from the microphone.
  6. Stream<Uint8List> get outgoingAudioStream;
  7. /// A property to check the recording status.
  8. bool get isRecording;
  9. /// Starts continuous audio recording.
  10. Future<void> startRecording();
  11. /// Stops the continuous audio recording.
  12. Future<void> stopRecording();
  13. }