mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
21 lines
390 B
OpenEdge ABL
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"
|