PorcupineManager 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()
→ Future<void>
-
Releases Porcupine and audio resources
Throws a
PorcupineException
if there was a problem stopping audio recording.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
start()
→ Future<void>
-
Starts audio recording and processing with the Porcupine engine
Throws a
PorcupineException
if there was a problem starting audio recording
-
stop()
→ Future<void>
-
Stops audio recording and processing
Throws a
PorcupineException
if there was a problem stopping audio recording.
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
fromBuiltInKeywords(String accessKey, List<BuiltInKeyword> keywords, WakeWordCallback wakeWordCallback, {String? modelPath, List<double>? sensitivities, ErrorCallback? errorCallback})
→ Future<PorcupineManager>
-
Static creator for initializing PorcupineManager from a selection of built-in keywords
-
fromKeywordPaths(String accessKey, List<String> keywordPaths, WakeWordCallback wakeWordCallback, {String? modelPath, List<double>? sensitivities, ErrorCallback? errorCallback})
→ Future<PorcupineManager>
-
Static creator for initializing PorcupineManager from a list of paths to custom keyword files