Package ai.picovoice.koala
Class Koala.Builder
- java.lang.Object
-
- ai.picovoice.koala.Koala.Builder
-
- Enclosing class:
- Koala
public static class Koala.Builder extends java.lang.ObjectBuilder 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 Koalabuild(android.content.Context context)Creates an instance of Koala noise suppression engine.Koala.BuildersetAccessKey(java.lang.String accessKey)Setter for the AccessKey.Koala.BuildersetModelPath(java.lang.String modelPath)Setter for the absolute path to the file containing Koala model parameters.
-
-
-
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.
-
-