Add non-streaming ASR support for HarmonyOS. (#1564)
This commit is contained in:
@@ -8,11 +8,6 @@
|
||||
#include <string>
|
||||
#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/offline-model-config.h"
|
||||
|
||||
@@ -25,10 +20,9 @@ class OfflineCtcModel {
|
||||
static std::unique_ptr<OfflineCtcModel> Create(
|
||||
const OfflineModelConfig &config);
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
template <typename Manager>
|
||||
static std::unique_ptr<OfflineCtcModel> Create(
|
||||
AAssetManager *mgr, const OfflineModelConfig &config);
|
||||
#endif
|
||||
Manager *mgr, const OfflineModelConfig &config);
|
||||
|
||||
/** Run the forward method of the model.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user