earshot_classifier_platform_interface 0.2.0
earshot_classifier_platform_interface: ^0.2.0 copied to clipboard
Pre-release: the pure Dart platform interface for earshot_classifier, with the shared types for on-device sound classification.
Changelog #
0.2.0 #
- Add
EarshotClassifierPlatform.classify(Stream<PcmChunk>, ClassifierConfig), so native backends classify PCM fromearshot_captureinstead of opening their own microphone session (ADR 0018). It defaults to a stream that errors withUnimplementedError. detectionsnow captures withearshot_capturetoo, and detection timestamps follow the PCM clock.- Depend on
earshot_capture_platform_interfaceforPcmChunk.
0.1.0 #
- Add
EarshotSound, the cross-backend sound vocabulary. Each sound lists the Apple and YAMNet labels it maps to, validated against the official label lists. - Add
SoundVocabularyto map raw labels to sounds and groups. Unmapped labels fall back to their group, and silence is never reported. - Add
SoundDetection.sound. - BREAKING:
EarshotClassifierPlatform.detectionstakes aClassifierConfigand reports raw, unsmoothed detections from the backend's own microphone session. - Add
EarshotClassifierPlatform.isAvailable.
0.0.1 #
- Initial API preview.