Package ai.picovoice.porcupine
Class Porcupine.Builder
java.lang.Object
ai.picovoice.porcupine.Porcupine.Builder
- Enclosing class:
- Porcupine
Builder for creating an instance of Porcupine with a mixture of default arguments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates properties and creates an instance of the Porcupine wake word engine.setAccessKey(String accessKey) setBuiltInKeywords(Porcupine.BuiltInKeyword[] keywords) setKeywordPath(String keywordPaths) setKeywordPaths(String[] keywordPaths) setLibraryPath(String libraryPath) setModelPath(String modelPath) setSensitivities(float[] sensitivities) setSensitivity(float sensitivity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAccessKey
-
setLibraryPath
-
setModelPath
-
setKeywordPaths
-
setKeywordPath
-
setBuiltInKeywords
-
setBuiltInKeyword
-
setSensitivities
-
setSensitivity
-
build
Validates properties and creates an instance of the Porcupine wake word engine.- Returns:
- An instance of Porcupine wake word engine
- Throws:
PorcupineException- if there is an error while initializing Porcupine.
-