Class RhinoManager

java.lang.Object
ai.picovoice.rhino.RhinoManager

public class RhinoManager
extends java.lang.Object
High-level Android binding for Rhino Speech-to-Intent engotgine. It handles recording audio from microphone, processes it in real-time using Rhino, and notifies the client when an intent is inferred from the spoken command. For detailed information about Rhino refer to $Rhino.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  RhinoManager.Builder
    Builder for creating an instance of RhinoManager with a mixture of default arguments
  • Method Summary

    Modifier and Type Method Description
    void delete()
    Releases resources acquired by Rhino.
    java.lang.String getContextInformation()
    Getter for Rhino context information.
    int getFrameLength()
    Getter for number of audio samples per frame.
    int getSampleRate()
    Getter for audio sample rate accepted by Picovoice.
    java.lang.String getVersion()
    Getter for version.
    void process()
    Start recording audio from the microphone and infers the user's intent from the spoken command.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • process

      public void process()
      Start recording audio from the microphone and infers the user's intent from the spoken command. Once the inference is finalized it will invoke the user provided callback and terminates recording audio.
    • delete

      public void delete()
      Releases resources acquired by Rhino. It should be called when disposing the object.
    • getSampleRate

      public int getSampleRate()
      Getter for audio sample rate accepted by Picovoice.
      Returns:
      Audio sample rate accepted by Picovoice.
    • getFrameLength

      public int getFrameLength()
      Getter for number of audio samples per frame.
      Returns:
      Number of audio samples per frame.
    • getVersion

      public java.lang.String getVersion()
      Getter for version.
      Returns:
      Version.
    • getContextInformation

      public java.lang.String getContextInformation()
      Getter for Rhino context information.
      Returns:
      Context information.