Package ai.picovoice.eagle
Class EagleProfiler.Builder
- java.lang.Object
-
- ai.picovoice.eagle.EagleProfiler.Builder
-
- Enclosing class:
- EagleProfiler
public static class EagleProfiler.Builder extends java.lang.ObjectBuilder for creating instance of EagleProfiler.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EagleProfilerbuild(android.content.Context context)Validates properties and creates an instance of the Eagle profiler.EagleProfiler.BuildersetAccessKey(java.lang.String accessKey)EagleProfiler.BuildersetModelPath(java.lang.String modelPath)
-
-
-
Method Detail
-
setAccessKey
public EagleProfiler.Builder setAccessKey(java.lang.String accessKey)
-
setModelPath
public EagleProfiler.Builder setModelPath(java.lang.String modelPath)
-
build
public EagleProfiler build(android.content.Context context) throws EagleException
Validates properties and creates an instance of the Eagle profiler.- Parameters:
context- Android app context (for extracting Eagle resources)- Returns:
- An instance Eagle profiler
- Throws:
EagleException- if there is an error while initializing Eagle profiler.
-
-