Package ai.picovoice.picovoice
Class Picovoice.Builder
java.lang.Object
ai.picovoice.picovoice.Picovoice.Builder
- Enclosing class:
- Picovoice
Builder for creating an instance of Picovoice with a mixture of default arguments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates properties and creates an instance of the Picovoice end-to-end platform.setAccessKey(String accessKey) setContextPath(String contextPath) setInferenceCallback(PicovoiceInferenceCallback inferenceCallback) setKeywordPath(String keywordPath) setPorcupineLibraryPath(String porcupineLibraryPath) setPorcupineModelPath(String porcupineModelPath) setPorcupineSensitivity(float porcupineSensitivity) setRequireEndpoint(boolean requireEndpoint) setRhinoLibraryPath(String rhinoLibraryPath) setRhinoModelPath(String rhinoModelPath) setRhinoSensitivity(float rhinoSensitivity) setWakeWordCallback(PicovoiceWakeWordCallback wakeWordCallback)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAccessKey
-
setPorcupineLibraryPath
-
setPorcupineModelPath
-
setKeywordPath
-
setPorcupineSensitivity
-
setWakeWordCallback
-
setRhinoLibraryPath
-
setRhinoModelPath
-
setContextPath
-
setRhinoSensitivity
-
setInferenceCallback
-
setRequireEndpoint
-
build
Validates properties and creates an instance of the Picovoice end-to-end platform.- Returns:
- An instance of Picovoice
- Throws:
PicovoiceException- if there is an error while initializing Picovoice.
-