Skip to main content

earshot_classifier_platform_interface 1.0.0 copy "earshot_classifier_platform_interface: ^1.0.0" to clipboard
earshot_classifier_platform_interface: ^1.0.0 copied to clipboard

The pure Dart platform interface for earshot_classifier, with the shared types for on-device sound classification.

Changelog #

1.0.0 #

  • First stable release. The public API follows semantic versioning from now on: breaking changes only in a major version (ADR 0021).
  • Breaking: remove ClassifierBackend.auto. ClassifierBackend now names engines only, and the vocabulary APIs no longer throw an ArgumentError for a backend (ADR 0023).
  • Add ClassifierException and ClassifierErrorCode (unsupported, modelUnavailable, unknown). Backends deliver their own failures as a ClassifierException, and forward errors from the PCM unchanged (ADR 0024).
  • Document that EarshotSound, SoundGroup and ClassifierBackend can gain values in a minor version (ADR 0021).

0.2.0 #

  • Add EarshotClassifierPlatform.classify(Stream<PcmChunk>, ClassifierConfig), so native backends classify PCM from earshot_capture instead of opening their own microphone session (ADR 0018). It defaults to a stream that errors with UnimplementedError.
  • detections now captures with earshot_capture too, and detection timestamps follow the PCM clock.
  • Depend on earshot_capture_platform_interface for PcmChunk.

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 SoundVocabulary to map raw labels to sounds and groups. Unmapped labels fall back to their group, and silence is never reported.
  • Add SoundDetection.sound.
  • BREAKING: EarshotClassifierPlatform.detections takes a ClassifierConfig and reports raw, unsmoothed detections from the backend's own microphone session.
  • Add EarshotClassifierPlatform.isAvailable.

0.0.1 #

  • Initial API preview.
0
likes
160
points
406
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The pure Dart platform interface for earshot_classifier, with the shared types for on-device sound classification.

Repository (GitHub)
View/report issues
Contributing

Topics

#audio #sound-classification #plugin-interface

License

MIT (license)

Dependencies

earshot_capture_platform_interface, meta, plugin_platform_interface

More

Packages that depend on earshot_classifier_platform_interface