VoiceProcessor class

An audio capture library designed for real-time speech audio processing on mobile devices. Given some specifications, the library delivers frames of raw audio data to the user via listeners.

Properties

hashCode int
The hash code for this object.
no setterinherited
numErrorListeners int
Gets the number of registered error listeners.
no setter
numFrameListeners int
Gets the number of registered frame listeners.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addErrorListener(VoiceProcessorErrorListener errorListener) → void
Adds a new error listener.
addFrameListener(VoiceProcessorFrameListener listener) → void
Adds a new listener that receives audio frames.
addFrameListeners(List<VoiceProcessorFrameListener> listeners) → void
Adds a list of listeners that receive audio frames.
clearErrorListeners() → void
Removes all error listeners.
clearFrameListeners() → void
Removes all frame listeners.
hasRecordAudioPermission() Future<bool?>
Checks if the app has permission to record audio and prompts user if not.
isRecording() Future<bool?>
Checks if audio recording is currently in progress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeErrorListener(VoiceProcessorErrorListener errorListener) → void
Removes a previously added error listener.
removeFrameListener(VoiceProcessorFrameListener listener) → void
Removes a previously added frame listener.
removeFrameListeners(List<VoiceProcessorFrameListener> listeners) → void
Removes previously added frame listeners.
start(int frameLength, int sampleRate) Future<void>
Starts audio recording with the given sampleRate and delivering audio frames of size frameLength to registered frame listeners.
stop() Future<void>
Stops audio recording.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VoiceProcessor?
Singleton instance of VoiceProcessor
no setter