Classes | |
class | Builder |
Public Member Functions | |
void | delete () |
void | delete () |
String | getContextInformation () |
String | getContextInformation () |
native int | getFrameLength () |
native int | getFrameLength () |
RhinoInference | getInference () throws RhinoException |
RhinoInference | getInference () throws RhinoException |
native int | getSampleRate () |
native int | getSampleRate () |
native String | getVersion () |
native String | getVersion () |
boolean | process (short[] pcm) throws RhinoException |
boolean | process (short[] pcm) throws RhinoException |
Rhino (String accessKey, String libraryPath, String modelPath, String contextPath, float sensitivity, boolean requireEndpoint) throws RhinoException | |
Static Public Attributes | |
static final String | LIBRARY_PATH |
static final String | MODEL_PATH |
Private Member Functions | |
native void | delete (long object) |
native void | delete (long object) |
native String | getContextInfo (long object) |
native String | getContextInfo (long object) |
native String | getIntent (long object) |
native String | getIntent (long object) |
native long | init (String accessKey, String modelPath, String contextPath, float sensitivity, boolean requireEndpoint) |
native long | init (String accessKey, String modelPath, String contextPath, float sensitivity, boolean requireEndpoint) |
native boolean | isUnderstood (long object) |
native boolean | isUnderstood (long object) |
native boolean | process (long object, short[] pcm) |
native boolean | process (long object, short[] pcm) |
native boolean | reset (long object) |
native boolean | reset (long object) |
Rhino (String accessKey, String modelPath, String contextPath, float sensitivity, boolean requireEndpoint) | |
Private Attributes | |
long | handle |
final long | libraryHandle |
Static Private Attributes | |
static String | DEFAULT_MODEL_PATH |
static boolean | isExtracted |
Android binding for Rhino Speech-to-Intent engine. It directly infers the user's intent from spoken commands in real-time. Rhino processes incoming audio in consecutive frames and indicates if the inference is finalized. When finalized, the inferred intent can be retrieved as structured data in the form of an intent string and pairs of slots and values. The number of samples per frame can be attained by calling getFrameLength() . The incoming audio needs to have a sample rate equal to getSampleRate() and be 16-bit linearly-encoded. Rhino operates on single-channel audio.
Java binding for Rhino Speech-to-Intent engine. It directly infers the user's intent from spoken commands in real-time. Rhino processes incoming audio in consecutive frames and indicates if the inference is finalized. When finalized, the inferred intent can be retrieved as structured data in the form of an intent string and pairs of slots and values. The number of samples per frame can be attained by calling getFrameLength() . The incoming audio needs to have a sample rate equal to getSampleRate() and be 16-bit linearly-encoded. Rhino operates on single-channel audio.
Definition at line 35 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
inlineprivate |
Constructor.
accessKey | AccessKey obtained from Picovoice Console (https://console.picovoice.ai/). |
modelPath | Absolute path to the file containing model parameters. |
contextPath | Absolute path to file containing context parameters. A context represents the set of expressions (spoken commands), intents, and intent arguments (slots) within a domain of interest. |
sensitivity | Inference sensitivity. It should be a number within [0, 1]. A higher sensitivity value results in fewer misses at the cost of (potentially) increasing the erroneous inference rate. |
requireEndpoint | Boolean variable to indicate if Rhino should wait for a chunk of silence before finishing inference. |
Definition at line 60 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
inline |
Constructor.
accessKey | AccessKey obtained from Picovoice Console (https://picovoice.ai/console/) |
libraryPath | Absolute path to the native Rhino library. |
modelPath | Absolute path to the file containing model parameters. |
contextPath | Absolute path to file containing context parameters. A context represents the set of expressions (spoken commands), intents, and intent arguments (slots) within a domain of interest. |
sensitivity | Inference sensitivity. It should be a number within [0, 1]. A higher sensitivity value results in fewer misses at the cost of (potentially) increasing the erroneous inference rate. |
requireEndpoint | If set to true , Rhino requires an endpoint (chunk of silence) before finishing inference. |
RhinoException | If there is an error while initializing Rhino. |
Definition at line 58 of file java/src/ai/picovoice/rhino/Rhino.java.
|
inline |
Releases resources acquired by Rhino.
Definition at line 71 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
inline |
Releases resources acquired by Rhino.
Definition at line 71 of file java/src/ai/picovoice/rhino/Rhino.java.
|
private |
|
private |
|
private |
|
private |
|
inline |
Getter for context information.
Definition at line 136 of file java/src/ai/picovoice/rhino/Rhino.java.
|
inline |
Getter for context information.
Definition at line 157 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
native int ai.picovoice.rhino.Rhino.getFrameLength | ( | ) |
Getter for number of audio samples per frame.
native int ai.picovoice.rhino.Rhino.getFrameLength | ( | ) |
Getter for number of audio samples per frame.
|
inline |
Gets inference result from Rhino. If the spoken command was understood, it includes the specific intent name that was inferred, and (if applicable) slot keys and specific slot values. Should only be called after the process function returns true, otherwise Rhino has not yet reached an inference conclusion.
RhinoException | if inference retrieval fails. |
Definition at line 100 of file java/src/ai/picovoice/rhino/Rhino.java.
|
inline |
Gets inference result from Rhino. If the spoken command was understood, it includes the specific intent name that was inferred, and (if applicable) slot keys and specific slot values. Should only be called after the process function returns true, otherwise Rhino has not yet reached an inference conclusion.
RhinoException | if inference retrieval fails. |
Definition at line 120 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
private |
|
private |
native int ai.picovoice.rhino.Rhino.getSampleRate | ( | ) |
Getter for audio sample rate accepted by Picovoice.
native int ai.picovoice.rhino.Rhino.getSampleRate | ( | ) |
Getter for audio sample rate accepted by Picovoice.
native String ai.picovoice.rhino.Rhino.getVersion | ( | ) |
Getter for version.
native String ai.picovoice.rhino.Rhino.getVersion | ( | ) |
Getter for version.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
Processes a frame of audio and emits a flag indicating if the inference is finalized. When finalized, getInference() should be called to retrieve the intent and slots, if the spoken command is considered valid.
pcm | A frame of audio samples. The number of samples per frame can be attained by calling getFrameLength(). The incoming audio needs to have a sample rate equal to getSampleRate() and be 16-bit linearly-encoded. Furthermore, Rhino operates on single channel audio. |
RhinoException | if there is an error while processing the audio frame. |
Definition at line 87 of file java/src/ai/picovoice/rhino/Rhino.java.
|
inline |
Processes a frame of audio and emits a flag indicating if the inference is finalized. When finalized, getInference() should be called to retrieve the intent and slots, if the spoken command is considered valid.
pcm | A frame of audio samples. The number of samples per frame can be attained by calling getFrameLength(). The incoming audio needs to have a sample rate equal to getSampleRate() and be 16-bit linearly-encoded. Furthermore, Rhino operates on single channel audio. |
RhinoException | if there is an error while processing the audio frame. |
Definition at line 90 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
private |
|
private |
|
staticprivate |
Definition at line 37 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
private |
Definition at line 44 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
staticprivate |
Definition at line 38 of file android/Rhino/rhino/src/main/java/ai/picovoice/rhino/Rhino.java.
|
static |
Definition at line 35 of file java/src/ai/picovoice/rhino/Rhino.java.
|
private |
Definition at line 33 of file java/src/ai/picovoice/rhino/Rhino.java.
|
static |
Definition at line 36 of file java/src/ai/picovoice/rhino/Rhino.java.