DeepSpeech/native_client/java/jni/deepspeech.i
2018-12-13 13:24:02 +01:00

21 lines
390 B
OpenEdge ABL

%module impl
%{
#define SWIG_FILE_WITH_INIT
#include "../../deepspeech.h"
%}
%include "typemaps.i"
%include "arrays_java.i"
// apply to DS_FeedAudioContent and DS_SpeechToText
%apply short[] { short* };
%include "cpointer.i"
%pointer_functions(ModelState*, modelstatep);
%pointer_functions(StreamingState*, streamingstatep);
%rename ("%(strip:[DS_])s") "";
%include "../deepspeech.h"