Package com.vivoka.vsdk
Class Vsdk.NativeVsdk
java.lang.Object
com.vivoka.vsdk.Vsdk.NativeVsdk
- Enclosing class:
Vsdk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Vsdk.NativeVsdkvoidinitFromFile(android.content.Context context, String configPath) Init the vsdk enginevoidinitFromJson(android.content.Context context, String json, String configDir) Init the vsdk enginevoidLog a messagevoidLog an audio buffervoidlogException(int line, String fileBaseName, String functionName, String module, Throwable ex) Log an exceptionvoidrelease()Destroy the allocated dataversion()Init the vsdk engine
-
Constructor Details
-
NativeVsdk
public NativeVsdk()
-
-
Method Details
-
getInstance
-
initFromFile
Init the vsdk engine- Parameters:
context- application contextconfigPath- 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 contextjson- vsdk.json configuration contentconfigDir- configuration directory- Throws:
Exception- if error occurs
-
release
Destroy the allocated data- Throws:
Exception- if error occurs
-
version
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
-