Class Vsdk.NativeVsdk

java.lang.Object
com.vivoka.vsdk.Vsdk.NativeVsdk
Enclosing class:
Vsdk

public static class Vsdk.NativeVsdk extends Object
  • Constructor Details

    • NativeVsdk

      public NativeVsdk()
  • Method Details

    • getInstance

      public static Vsdk.NativeVsdk getInstance()
    • initFromFile

      public void initFromFile(android.content.Context context, String configPath) throws Exception
      Init the vsdk engine
      Parameters:
      context - application context
      configPath - path to the vsdk.json configuration file
      Throws:
      Exception - if error occurs
    • initFromJson

      public void initFromJson(android.content.Context context, String json, String configDir) throws Exception
      Init the vsdk engine
      Parameters:
      context - application context
      json - vsdk.json configuration content
      configDir - configuration directory
      Throws:
      Exception - if error occurs
    • release

      public void release() throws Exception
      Destroy the allocated data
      Throws:
      Exception - if error occurs
    • version

      public String version() throws Exception
      Init the vsdk engine
      Returns:
      version of the vsdk used
      Throws:
      Exception - if error occurs
    • log

      public void log(int line, String fileBaseName, String functionName, int level, String module, String message) throws Exception
      Log a message
      Throws:
      Exception
    • logException

      public void logException(int line, String fileBaseName, String functionName, String module, Throwable ex) throws Exception
      Log an exception
      Throws:
      Exception
    • logAudio

      public void logAudio(String name, byte[] buffer, int sampleRate, int channels, boolean last) throws Exception
      Log an audio buffer
      Throws:
      Exception