AugnitoAudioStream class

Constructors

AugnitoAudioStream({dynamic sampleRate = AugnitoAudioStream.defaultSampleRate, dynamic enableLogs = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
isRecording bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPermissions() Future<bool>
Checks if the permissions for recording are enabled.
dispose() → void
Cancels the audio stream and calls dispose on the native code handler.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startListening({dynamic processSamples(dynamic)?, dynamic onError(dynamic)?}) Future<bool>
Attempts to initialize the audio stream and begins listening to the mic. It can return false if an error is encountered or if the permission to record audio has not been granted
stopListening() Future<bool>
Attempts to close the microphone stream.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultSampleRate → const int