audioTaskBackendFactory top-level property

Future<AudioTaskBackend> Function(Map<String, Object?> options)? audioTaskBackendFactory
getter/setter pair

Creates Google's Audio Classifier from options named as in Google's JavaScript API, plus modelBytes (a Uint8List) or modelPath (a URL).

Installed by this package's web code in browsers, where Google's runtime has no audio stream, so the package emulates the stream on its clips mode; null where the package runs Google's runtime itself.

Implementation

Future<AudioTaskBackend> Function(Map<String, Object?> options)?
audioTaskBackendFactory;