Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ai.picovoice.rhino.RhinoManager Class Reference

Classes

class  Builder
 

Public Member Functions

void delete ()
 
String getContextInformation ()
 
String getVersion ()
 
void process ()
 

Private Member Functions

 RhinoManager (Rhino rhino, RhinoManagerCallback callback, RhinoManagerErrorCallback errorCallback)
 

Private Attributes

final RhinoManagerCallback callback
 
final Handler callbackHandler = new Handler(Looper.getMainLooper())
 
final RhinoManagerErrorCallback errorCallback
 
final Rhino rhino
 

Detailed Description

High-level Android binding for Rhino Speech-to-Intent engotgine. It handles recording audio from microphone, processes it in real-time using Rhino, and notifies the client when an intent is inferred from the spoken command. For detailed information about Rhino refer to $Rhino.

Definition at line 30 of file RhinoManager.java.

Constructor & Destructor Documentation

◆ RhinoManager()

ai.picovoice.rhino.RhinoManager.RhinoManager ( Rhino  rhino,
RhinoManagerCallback  callback,
RhinoManagerErrorCallback  errorCallback 
)
inlineprivate

Private constructor.

Parameters
rhinoAbsolute path to the file containing model parameters.
callbackIt is invoked upon completion of intent inference.
errorCallbackA callback that reports errors encountered while processing audio.

Definition at line 43 of file RhinoManager.java.

Member Function Documentation

◆ delete()

void ai.picovoice.rhino.RhinoManager.delete ( )
inline

Releases resources acquired by Rhino. It should be called when disposing the object.

Definition at line 136 of file RhinoManager.java.

◆ getContextInformation()

String ai.picovoice.rhino.RhinoManager.getContextInformation ( )
inline

Getter for Rhino context information.

Returns
Context information.

Definition at line 154 of file RhinoManager.java.

◆ getVersion()

String ai.picovoice.rhino.RhinoManager.getVersion ( )
inline

Getter for version.

Returns
Version.

Definition at line 145 of file RhinoManager.java.

◆ process()

void ai.picovoice.rhino.RhinoManager.process ( )
inline

Start recording audio from the microphone and infers the user's intent from the spoken command. Once the inference is finalized it will invoke the user provided callback and terminates recording audio.

Definition at line 58 of file RhinoManager.java.

Member Data Documentation

◆ callback

final RhinoManagerCallback ai.picovoice.rhino.RhinoManager.callback
private

Definition at line 32 of file RhinoManager.java.

◆ callbackHandler

final Handler ai.picovoice.rhino.RhinoManager.callbackHandler = new Handler(Looper.getMainLooper())
private

Definition at line 34 of file RhinoManager.java.

◆ errorCallback

final RhinoManagerErrorCallback ai.picovoice.rhino.RhinoManager.errorCallback
private

Definition at line 33 of file RhinoManager.java.

◆ rhino

final Rhino ai.picovoice.rhino.RhinoManager.rhino
private

Definition at line 31 of file RhinoManager.java.


The documentation for this class was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20