Add speaker diarization demo for HarmonyOS (#1610)

This commit is contained in:
Fangjun Kuang
2024-12-10 20:11:44 +08:00
committed by GitHub
parent 1bae4085ca
commit 914cbad6a3
45 changed files with 1074 additions and 17 deletions

View File

@@ -1512,10 +1512,10 @@ SHERPA_ONNX_API void SherpaOnnxOfflineSpeakerDiarizationDestroySegment(
const SherpaOnnxOfflineSpeakerDiarizationSegment *s);
typedef int32_t (*SherpaOnnxOfflineSpeakerDiarizationProgressCallback)(
int32_t num_processed_chunk, int32_t num_total_chunks, void *arg);
int32_t num_processed_chunks, int32_t num_total_chunks, void *arg);
typedef int32_t (*SherpaOnnxOfflineSpeakerDiarizationProgressCallbackNoArg)(
int32_t num_processed_chunk, int32_t num_total_chunks);
int32_t num_processed_chunks, int32_t num_total_chunks);
// The user has to invoke SherpaOnnxOfflineSpeakerDiarizationDestroyResult()
// to free the returned pointer to avoid memory leak.