Skip to main content

earshot_capture 1.0.0 copy "earshot_capture: ^1.0.0" to clipboard
earshot_capture: ^1.0.0 copied to clipboard

On-device microphone capture for Flutter as a float32 PCM stream, with permission status. No network.

example/README.md

earshot_capture example #

import 'package:earshot_capture/earshot_capture.dart';

final status = await const MicrophonePermission().status(); // never prompts
if (status != MicrophonePermissionStatus.granted) {
  await const MicrophonePermission().request();
}

final subscription = const EarshotCapture().pcm().listen((chunk) {
  // chunk.samples is float32 mono PCM at 16 kHz.
});
await subscription.cancel(); // closes the microphone

A complete Flutter app that uses the earshot packages lives in examples/earshot_example.

0
likes
160
points
381
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

On-device microphone capture for Flutter as a float32 PCM stream, with permission status. No network.

Repository (GitHub)
View/report issues
Contributing

Topics

#audio #microphone #pcm

License

MIT (license)

Dependencies

earshot_capture_android, earshot_capture_darwin, earshot_capture_platform_interface, flutter

More

Packages that depend on earshot_capture

Packages that implement earshot_capture