Package ai.picovoice.rhino
Class RhinoManager.Builder
java.lang.Object
ai.picovoice.rhino.RhinoManager.Builder
- Enclosing class:
- RhinoManager
public static class RhinoManager.Builder
extends java.lang.Object
Builder for creating an instance of RhinoManager with a mixture of default arguments
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RhinoManagerbuild(android.content.Context context, RhinoManagerCallback callback)Creates an instance of RhinoManager.RhinoManager.BuildersetContextPath(java.lang.String contextPath)RhinoManager.BuildersetErrorCallback(RhinoManagerErrorCallback errorCallback)RhinoManager.BuildersetModelPath(java.lang.String modelPath)RhinoManager.BuildersetSensitivity(float sensitivity)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setModelPath
-
setContextPath
-
setSensitivity
-
setErrorCallback
-
build
public RhinoManager build(android.content.Context context, RhinoManagerCallback callback) throws RhinoExceptionCreates an instance of RhinoManager.- Parameters:
context- Android app context (for extracting Rhino resources)callback- A callback function that is invoked upon intent inference.- Returns:
- A RhinoManager instance
- Throws:
RhinoException- if there is an error while initializing Rhino.
-