earshot_plugin 1.0.0
earshot_plugin: ^1.0.0 copied to clipboard
On-device ambient listening for Flutter. Sound level in dB(A) and sound classification in one stream. No network.
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.