earshot_plugin 0.1.0
earshot_plugin: ^0.1.0 copied to clipboard
Pre-release: on-device ambient listening for Flutter. Sound level in dB(A) and sound classification in one stream. No network.
example/README.md
earshot_plugin example #
import 'package:earshot_plugin/earshot_plugin.dart';
await const MicrophonePermission().request();
const Earshot().listen().listen(
(event) => print('${event.level?.db} dB(A), ${event.detections}'),
onError: (Object error) => print(error),
);
A complete Flutter app that uses the earshot packages lives in examples/earshot_example.