Porcupine class

Properties

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

Methods

delete() → void
Frees memory that was allocated for Porcupine
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(List<int>? frame) int
Process a frame of audio with the wake word engine.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

frameLength int
The number of audio samples per frame required by Porcupine
no setter
sampleRate int
The audio sample rate required by Porcupine
no setter
version String
Porcupine version string
no setter

Static Methods

fromKeywordPaths(List<String?>? keywordPaths, {String? modelPath, List<double>? sensitivities}) Future<Porcupine>
Static creator for initializing Porcupine from a list of paths to custom keyword files
fromKeywords(List<String?>? keywords, {String? modelPath, List<double>? sensitivities}) Future<Porcupine>
Static creator for initializing Porcupine from a selection of built-in keywords

Constants

BUILT_IN_KEYWORDS → const List<String>
a list of built-in keywords