Add streaming ASR support for HarmonyOS. (#1565)
This commit is contained in:
@@ -1527,6 +1527,13 @@ SHERPA_ONNX_API void SherpaOnnxOfflineSpeakerDiarizationDestroyResult(
|
||||
// It is for HarmonyOS
|
||||
typedef struct NativeResourceManager NativeResourceManager;
|
||||
|
||||
/// @param config Config for the recognizer.
|
||||
/// @return Return a pointer to the recognizer. The user has to invoke
|
||||
// SherpaOnnxDestroyOnlineRecognizer() to free it to avoid memory leak.
|
||||
SHERPA_ONNX_API const SherpaOnnxOnlineRecognizer *
|
||||
SherpaOnnxCreateOnlineRecognizerOHOS(
|
||||
const SherpaOnnxOnlineRecognizerConfig *config, NativeResourceManager *mgr);
|
||||
|
||||
/// @param config Config for the recognizer.
|
||||
/// @return Return a pointer to the recognizer. The user has to invoke
|
||||
// SherpaOnnxDestroyOfflineRecognizer() to free it to avoid memory
|
||||
|
||||
Reference in New Issue
Block a user