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

Public Member Functions

RhinoManager build (Context context, RhinoManagerCallback callback) throws RhinoException
 
RhinoManager.Builder setAccessKey (String accessKey)
 
RhinoManager.Builder setContextPath (String contextPath)
 
RhinoManager.Builder setErrorCallback (RhinoManagerErrorCallback errorCallback)
 
RhinoManager.Builder setModelPath (String modelPath)
 
RhinoManager.Builder setRequireEndpoint (boolean requireEndpoint)
 
RhinoManager.Builder setSensitivity (float sensitivity)
 

Private Attributes

String accessKey = null
 
String contextPath = null
 
RhinoManagerErrorCallback errorCallback = null
 
String modelPath = null
 
boolean requireEndpoint = true
 
float sensitivity = 0.5f
 

Detailed Description

Builder for creating an instance of RhinoManager with a mixture of default arguments

Definition at line 161 of file RhinoManager.java.

Member Function Documentation

◆ build()

RhinoManager ai.picovoice.rhino.RhinoManager.Builder.build ( Context  context,
RhinoManagerCallback  callback 
) throws RhinoException
inline

Creates an instance of RhinoManager.

Parameters
contextAndroid app context (for extracting Rhino resources)
callbackA callback function that is invoked upon intent inference.
Returns
A RhinoManager instance
Exceptions
RhinoExceptionif there is an error while initializing Rhino.

Definition at line 208 of file RhinoManager.java.

◆ setAccessKey()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setAccessKey ( String  accessKey)
inline

Definition at line 170 of file RhinoManager.java.

◆ setContextPath()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setContextPath ( String  contextPath)
inline

Definition at line 180 of file RhinoManager.java.

◆ setErrorCallback()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setErrorCallback ( RhinoManagerErrorCallback  errorCallback)
inline

Definition at line 195 of file RhinoManager.java.

◆ setModelPath()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setModelPath ( String  modelPath)
inline

Definition at line 175 of file RhinoManager.java.

◆ setRequireEndpoint()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setRequireEndpoint ( boolean  requireEndpoint)
inline

Definition at line 190 of file RhinoManager.java.

◆ setSensitivity()

RhinoManager.Builder ai.picovoice.rhino.RhinoManager.Builder.setSensitivity ( float  sensitivity)
inline

Definition at line 185 of file RhinoManager.java.

Member Data Documentation

◆ accessKey

String ai.picovoice.rhino.RhinoManager.Builder.accessKey = null
private

Definition at line 163 of file RhinoManager.java.

◆ contextPath

String ai.picovoice.rhino.RhinoManager.Builder.contextPath = null
private

Definition at line 165 of file RhinoManager.java.

◆ errorCallback

RhinoManagerErrorCallback ai.picovoice.rhino.RhinoManager.Builder.errorCallback = null
private

Definition at line 168 of file RhinoManager.java.

◆ modelPath

String ai.picovoice.rhino.RhinoManager.Builder.modelPath = null
private

Definition at line 164 of file RhinoManager.java.

◆ requireEndpoint

boolean ai.picovoice.rhino.RhinoManager.Builder.requireEndpoint = true
private

Definition at line 167 of file RhinoManager.java.

◆ sensitivity

float ai.picovoice.rhino.RhinoManager.Builder.sensitivity = 0.5f
private

Definition at line 166 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