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
    Rhino build​(android.content.Context context)
    Validates properties and creates an instance of the Rhino Speech-To-Intent engine
    Rhino.Builder setContextPath​(java.lang.String contextPath)  
    Rhino.Builder setModelPath​(java.lang.String modelPath)  
    Rhino.Builder setSensitivity​(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

      public Rhino.Builder setModelPath​(java.lang.String modelPath)
    • setContextPath

      public Rhino.Builder setContextPath​(java.lang.String contextPath)
    • setSensitivity

      public Rhino.Builder setSensitivity​(float sensitivity)
    • build

      public Rhino build​(android.content.Context context) throws RhinoException
      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.