Package ai.picovoice.leopard
Class Leopard.Builder
- java.lang.Object
-
- ai.picovoice.leopard.Leopard.Builder
-
- Enclosing class:
- Leopard
public static class Leopard.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Leopardbuild(android.content.Context context)Leopard.BuildersetAccessKey(java.lang.String accessKey)Setter the AccessKeyLeopard.BuildersetEnableAutomaticPunctuation(boolean enableAutomaticPunctuation)Setter for enabling automatic punctuation insertionLeopard.BuildersetModelPath(java.lang.String modelPath)Setter for the absolute path to the file containing Leopard model parameters.
-
-
-
Method Detail
-
setAccessKey
public Leopard.Builder setAccessKey(java.lang.String accessKey)
Setter the AccessKey- Parameters:
accessKey- AccessKey obtained from Picovoice Console
-
setModelPath
public Leopard.Builder setModelPath(java.lang.String modelPath)
Setter for the absolute path to the file containing Leopard model parameters.- Parameters:
modelPath- Absolute path to the file containing Leopard model parameters.
-
setEnableAutomaticPunctuation
public Leopard.Builder setEnableAutomaticPunctuation(boolean enableAutomaticPunctuation)
Setter for enabling automatic punctuation insertion- Parameters:
enableAutomaticPunctuation- Set to `true` to enable automatic punctuation insertion.
-
build
public Leopard build(android.content.Context context) throws LeopardException
- Throws:
LeopardException
-
-