Public Member Functions | Private Member Functions | Private Attributes | List of all members
ai.picovoice.rhino.Rhino.Builder Class Reference

Public Member Functions

Rhino build () throws RhinoException
 
Rhino build (Context context) throws RhinoException
 
Builder setAccessKey (String accessKey)
 
Builder setAccessKey (String accessKey)
 
Builder setContextPath (String contextPath)
 
Builder setContextPath (String contextPath)
 
Builder setLibraryPath (String libraryPath)
 
Builder setModelPath (String modelPath)
 
Builder setModelPath (String modelPath)
 
Builder setRequireEndpoint (boolean requireEndpoint)
 
Builder setRequireEndpoint (boolean requireEndpoint)
 
Builder setSensitivity (float sensitivity)
 
Builder setSensitivity (float sensitivity)
 

Private Member Functions

void extractPackageResources (Context context) throws RhinoIOException
 
String extractResource (Context context, InputStream srcFileStream, String dstFilename) throws IOException
 

Private Attributes

String accessKey = null
 
String contextPath = null
 
String libraryPath = null
 
String modelPath = null
 
boolean requireEndpoint = true
 
float sensitivity = 0.5f
 

Detailed Description

Builder for creating an instance of Rhino with a mixture of default arguments

Definition at line 199 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.

Member Function Documentation

◆ build() [1/2]

Rhino ai.picovoice.rhino.Rhino.Builder.build ( ) throws RhinoException
inline

Validates properties and creates an instance of the Rhino Speech-to-Intent engine.

Returns
An instance of Rhino wake word engine
Exceptions
RhinoExceptionif there is an error while initializing Rhino.

Definition at line 222 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ build() [2/2]

Rhino ai.picovoice.rhino.Rhino.Builder.build ( Context  context) throws RhinoException
inline

Validates properties and creates an instance of the Rhino Speech-To-Intent engine

Parameters
contextAndroid app context (for extracting Rhino resources)
Returns
An instance of Rhino Speech-To-Intent engine
Exceptions
RhinoExceptionif there is an error while initializing Rhino.

Definition at line 266 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.

◆ extractPackageResources()

void ai.picovoice.rhino.Rhino.Builder.extractPackageResources ( Context  context) throws RhinoIOException
inlineprivate

◆ extractResource()

String ai.picovoice.rhino.Rhino.Builder.extractResource ( Context  context,
InputStream  srcFileStream,
String  dstFilename 
) throws IOException
inlineprivate

◆ setAccessKey() [1/2]

Builder ai.picovoice.rhino.Rhino.Builder.setAccessKey ( String  accessKey)
inline

Definition at line 187 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setAccessKey() [2/2]

Builder ai.picovoice.rhino.Rhino.Builder.setAccessKey ( String  accessKey)
inline

◆ setContextPath() [1/2]

Builder ai.picovoice.rhino.Rhino.Builder.setContextPath ( String  contextPath)
inline

Definition at line 202 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setContextPath() [2/2]

Builder ai.picovoice.rhino.Rhino.Builder.setContextPath ( String  contextPath)
inline

◆ setLibraryPath()

Builder ai.picovoice.rhino.Rhino.Builder.setLibraryPath ( String  libraryPath)
inline

Definition at line 192 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setModelPath() [1/2]

Builder ai.picovoice.rhino.Rhino.Builder.setModelPath ( String  modelPath)
inline

Definition at line 197 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setModelPath() [2/2]

Builder ai.picovoice.rhino.Rhino.Builder.setModelPath ( String  modelPath)
inline

◆ setRequireEndpoint() [1/2]

Builder ai.picovoice.rhino.Rhino.Builder.setRequireEndpoint ( boolean  requireEndpoint)
inline

Definition at line 212 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setRequireEndpoint() [2/2]

Builder ai.picovoice.rhino.Rhino.Builder.setRequireEndpoint ( boolean  requireEndpoint)
inline

◆ setSensitivity() [1/2]

Builder ai.picovoice.rhino.Rhino.Builder.setSensitivity ( float  sensitivity)
inline

Definition at line 207 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ setSensitivity() [2/2]

Builder ai.picovoice.rhino.Rhino.Builder.setSensitivity ( float  sensitivity)
inline

Member Data Documentation

◆ accessKey

String ai.picovoice.rhino.Rhino.Builder.accessKey = null
private

◆ contextPath

String ai.picovoice.rhino.Rhino.Builder.contextPath = null
private

◆ libraryPath

String ai.picovoice.rhino.Rhino.Builder.libraryPath = null
private

Definition at line 181 of file java/src/ai/picovoice/rhino/Rhino.java.

◆ modelPath

String ai.picovoice.rhino.Rhino.Builder.modelPath = null
private

◆ requireEndpoint

boolean ai.picovoice.rhino.Rhino.Builder.requireEndpoint = true
private

◆ sensitivity

float ai.picovoice.rhino.Rhino.Builder.sensitivity = 0.5f
private

The documentation for this class was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20