Package ai.picovoice.rhino
Class Rhino.Builder
java.lang.Object
ai.picovoice.rhino.Rhino.Builder
- Enclosing class:
- Rhino
public static class Rhino.Builder
extends java.lang.Object
Builder for creating an instance of Rhino with a mixture of default arguments
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Rhinobuild(android.content.Context context)Validates properties and creates an instance of the Rhino Speech-To-Intent engineRhino.BuildersetContextPath(java.lang.String contextPath)Rhino.BuildersetModelPath(java.lang.String modelPath)Rhino.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
-
build
Validates properties and creates an instance of the Rhino Speech-To-Intent engine- Parameters:
context- Android app context (for extracting Rhino resources)- Returns:
- An instance of Rhino Speech-To-Intent engine
- Throws:
RhinoException- if there is an error while initializing Rhino.
-