earshot_classifier 0.2.0
earshot_classifier: ^0.2.0 copied to clipboard
Pre-release: on-device sound classification for Flutter, with Apple SoundAnalysis and YAMNet backends. No network.
Changelog #
0.2.0 #
EarshotClassifier.classify(pcm)now picks the backend likedetections():apple, andautoon iOS and macOS when SoundAnalysis is available, run SoundAnalysis on the given PCM.appleno longer errors there.- The
applebackend ofdetections()captures withearshot_captureinstead of opening its own microphone session.
0.1.0 #
- BREAKING:
EarshotClassifier.detections()now classifies. It picks the backend fromClassifierOptions.backend, drops detections belowminConfidenceand appliesSmoothing. - Add the
yamnetbackend: YAMNet float32 through LiteRT (flutter_litert) in a background isolate, on Android, iOS and macOS. The model is bundled as an asset (seeTHIRD_PARTY_NOTICES.md). - Add backend selection:
autouses the platform backend on iOS and macOS when it is available, and YAMNet otherwise. - Add
EarshotClassifier.classify(Stream<PcmChunk>)to classify PCM the app already captures. PCM at 44.1 or 48 kHz is resampled to 16 kHz. - Export
EarshotSoundandSoundVocabulary.
0.0.1 #
- Initial API preview.