platform_interface library

Where the browser plugin plugs Google's JavaScript runtime into the Audio Classifier, and the hooks the repository's device tests read.

Applications should import mediapipe_audio.dart instead.

Classes

AudioTaskBackend
Google's Audio Classifier, created and run by a platform backend.

Properties

audioTaskBackendFactory ↔ Future<AudioTaskBackend> Function(Map<String, Object?> options)?
Creates Google's Audio Classifier from options named as in Google's JavaScript API, plus modelBytes (a Uint8List) or modelPath (a URL).
getter/setter pair
debugGoogleStreamTimestamp ↔ void Function(int timestampMilliseconds)?
Test hook: called with every timestamp Google's own stream delivers, before the tail's sentinel is replaced, so that a test can show a result came from Google's flush. Null outside tests.
getter/setter pair