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.ObjectBuilder for creating an instance of RhinoManager with a mixture of default arguments
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RhinoManagerbuild(android.content.Context context, RhinoManagerCallback callback)Creates an instance of RhinoManager.RhinoManager.BuildersetAccessKey(java.lang.String accessKey)RhinoManager.BuildersetContextPath(java.lang.String contextPath)RhinoManager.BuildersetErrorCallback(RhinoManagerErrorCallback errorCallback)RhinoManager.BuildersetModelPath(java.lang.String modelPath)RhinoManager.BuildersetRequireEndpoint(boolean requireEndpoint)RhinoManager.BuildersetSensitivity(float sensitivity)
-
-
-
Method Detail
-
setAccessKey
public RhinoManager.Builder setAccessKey(java.lang.String accessKey)
-
setModelPath
public RhinoManager.Builder setModelPath(java.lang.String modelPath)
-
setContextPath
public RhinoManager.Builder setContextPath(java.lang.String contextPath)
-
setSensitivity
public RhinoManager.Builder setSensitivity(float sensitivity)
-
setRequireEndpoint
public RhinoManager.Builder setRequireEndpoint(boolean requireEndpoint)
-
setErrorCallback
public RhinoManager.Builder setErrorCallback(RhinoManagerErrorCallback errorCallback)
-
build
public RhinoManager build(android.content.Context context, RhinoManagerCallback callback) throws RhinoException
Creates 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.
-
-