Add non-streaming ASR support for HarmonyOS. (#1564)
This commit is contained in:
@@ -7,15 +7,6 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
#include "android/asset_manager.h"
|
||||
#include "android/asset_manager_jni.h"
|
||||
#endif
|
||||
|
||||
#if __OHOS__
|
||||
#include "rawfile/raw_file_manager.h"
|
||||
#endif
|
||||
|
||||
#include "sherpa-onnx/csrc/vad-model-config.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
@@ -30,16 +21,9 @@ class VoiceActivityDetector {
|
||||
explicit VoiceActivityDetector(const VadModelConfig &config,
|
||||
float buffer_size_in_seconds = 60);
|
||||
|
||||
#if __ANDROID_API__ >= 9
|
||||
VoiceActivityDetector(AAssetManager *mgr, const VadModelConfig &config,
|
||||
template <typename Manager>
|
||||
VoiceActivityDetector(Manager *mgr, const VadModelConfig &config,
|
||||
float buffer_size_in_seconds = 60);
|
||||
#endif
|
||||
|
||||
#if __OHOS__
|
||||
VoiceActivityDetector(NativeResourceManager *mgr,
|
||||
const VadModelConfig &config,
|
||||
float buffer_size_in_seconds = 60);
|
||||
#endif
|
||||
|
||||
~VoiceActivityDetector();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user