AppleSoundAnalysisHostApi class
Registered only when SoundAnalysis is available.
Constructors
- AppleSoundAnalysisHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for AppleSoundAnalysisHostApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyzeSamples(
int requestId, Uint8List float32Samples) → Future< void> -
Feeds interleaved samples to a stream analysis, as the bytes of a
little-endian
Float32List(Pigeon has no float32 list type). -
cancel(
int requestId) → Future< void> -
Stops an analysis. No further callbacks arrive for
requestId. -
cancelAll(
) → Future< int> - Stops every analysis. Returns how many were running.
-
classifierInfo(
ClassifierConfigMessage config) → Future< ClassifierInfoMessage> - Labels, window defaults and window constraints of a classifier.
-
completeStreamAnalysis(
int requestId) → Future< void> - Flushes a stream analysis; its last results and completion follow.
-
microphonePermission(
) → Future< MicrophonePermissionMessage> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestMicrophonePermission(
) → Future< bool> -
startFileAnalysis(
int requestId, String path, ClassifierConfigMessage config, int? maximumClassifications) → Future< void> - Starts classifying an audio file. Returns once the analysis has started; results follow through the callback API.
-
startMicrophoneAnalysis(
int requestId, ClassifierConfigMessage config, int? maximumClassifications) → Future< void> - Starts classifying the microphone until cancel is called.
-
startStreamAnalysis(
int requestId, AudioFormatMessage format, ClassifierConfigMessage config, int? maximumClassifications) → Future< void> - Starts an analysis of PCM audio that Dart pushes with analyzeSamples.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>