Class Koala.Builder

  • Enclosing class:
    Koala

    public static class Koala.Builder
    extends java.lang.Object
    Builder for creating an instance of Koala 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
      Koala build​(android.content.Context context)
      Creates an instance of Koala noise suppression engine.
      Koala.Builder setAccessKey​(java.lang.String accessKey)
      Setter for the AccessKey.
      Koala.Builder setModelPath​(java.lang.String modelPath)
      Setter for the absolute path to the file containing Koala model parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAccessKey

        public Koala.Builder setAccessKey​(java.lang.String accessKey)
        Setter for the AccessKey.
        Parameters:
        accessKey - AccessKey obtained from Picovoice Console
      • setModelPath

        public Koala.Builder setModelPath​(java.lang.String modelPath)
        Setter for the absolute path to the file containing Koala model parameters.
        Parameters:
        modelPath - Absolute path to the file containing Koala model parameters.
      • build

        public Koala build​(android.content.Context context)
                    throws KoalaException
        Creates an instance of Koala noise suppression engine.
        Parameters:
        context - Android app context
        Returns:
        An instance of Koala noise suppression engine
        Throws:
        KoalaException - if there is an error while initializing Koala.