earshot_classifier 1.0.0
earshot_classifier: ^1.0.0 copied to clipboard
On-device sound classification for Flutter, with Apple SoundAnalysis and YAMNet backends. No network.
earshot_classifier example #
import 'package:earshot_classifier/earshot_classifier.dart';
const EarshotClassifier().detections().listen((detection) {
// sound is null when the label maps to no EarshotSound.
print('${detection.group}: ${detection.sound ?? detection.rawLabel}');
});
A complete Flutter app that uses the earshot packages lives in examples/earshot_example.