Porcupine class
Properties
- frameLength → int
-
The number of audio samples per frame required by Porcupine
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
The audio sample rate required by Porcupine
no setter
- version → String
-
Porcupine version string
no setter
Methods
-
delete(
) → Future< 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) → Future<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 Methods
-
fromBuiltInKeywords(
String accessKey, List< BuiltInKeyword> keywords, {String? modelPath, List<double> ? sensitivities}) → Future<Porcupine> - Static creator for initializing Porcupine from a selection of built-in keywords
-
fromKeywordPaths(
String accessKey, List< String> keywordPaths, {String? modelPath, List<double> ? sensitivities}) → Future<Porcupine> - Static creator for initializing Porcupine from a list of paths to custom keyword files