Add two-pass speech recognition Android/iOS demo (#304)
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#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-lm-config.h"
|
||||
#include "sherpa-onnx/csrc/offline-lm.h"
|
||||
@@ -19,6 +24,10 @@ class OfflineRnnLM : public OfflineLM {
|
||||
|
||||
explicit OfflineRnnLM(const OfflineLMConfig &config);
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
OfflineRnnLM(AAssetManager *mgr, const OfflineLMConfig &config);
|
||||
#endif
|
||||
|
||||
/** Rescore a batch of sentences.
|
||||
*
|
||||
* @param x A 2-D tensor of shape (N, L) with data type int64.
|
||||
|
||||
Reference in New Issue
Block a user