Add build script for Android armv8a (#58)
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
#include "android/asset_manager.h"
|
||||
#include "android/asset_manager_jni.h"
|
||||
#endif
|
||||
|
||||
#include "onnxruntime_cxx_api.h" // NOLINT
|
||||
#include "sherpa-onnx/csrc/online-transducer-model-config.h"
|
||||
|
||||
@@ -22,6 +27,11 @@ class OnlineTransducerModel {
|
||||
static std::unique_ptr<OnlineTransducerModel> Create(
|
||||
const OnlineTransducerModelConfig &config);
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
static std::unique_ptr<OnlineTransducerModel> Create(
|
||||
AAssetManager *mgr, const OnlineTransducerModelConfig &config);
|
||||
#endif
|
||||
|
||||
/** Stack a list of individual states into a batch.
|
||||
*
|
||||
* It is the inverse operation of `UnStackStates`.
|
||||
|
||||
Reference in New Issue
Block a user