PicovoiceManager class
Properties
contextInfo
→ String ?
Gets the source of the Rhino context in YAML format. Shows the list of intents,
which expressions map to those intents, as well as slots and their possible values.
Only available after a call to .start()
.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
delete ()
→ Future <void >
Releases native resources that were allocated to PicovoiceManager.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset ()
→ Future <void >
Resets the internal state of PicovoiceManager. It can be called to
return to the wake word detection state before an inference has completed.
start ()
→ Future <void >
Opens audio input stream and sends audio frames to Picovoice.
Throws a PicovoiceException
if unable to start.
stop ()
→ Future <void >
Closes audio stream and stops Picovoice processing.
Throws a PicovoiceException
if there was a problem stopping audio recording.
toString ()
→ String
A string representation of this object.
inherited
Static Methods
create (String accessKey , String keywordPath , WakeWordCallback wakeWordCallback , String contextPath , InferenceCallback inferenceCallback , {double porcupineSensitivity = 0.5 , double rhinoSensitivity = 0.5 , String ? porcupineModelPath , String ? rhinoModelPath , double endpointDurationSec = 1.0 , bool requireEndpoint = true , ProcessErrorCallback ? processErrorCallback })
→ Future <PicovoiceManager >
Picovoice constructor.