From 685550515ed823d92226c873ab3811037f1aad5b Mon Sep 17 00:00:00 2001
From: Johntheprime <80041901+johntheprime@users.noreply.github.com>
Date: 星期二, 16 七月 2024 11:11:22 +0800
Subject: [PATCH] fix possible memory leak of funasr-wss-client (#1913)

---
 runtime/onnxruntime/src/fsmn-vad.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/onnxruntime/src/fsmn-vad.h b/runtime/onnxruntime/src/fsmn-vad.h
index adceb1f..f06a965 100644
--- a/runtime/onnxruntime/src/fsmn-vad.h
+++ b/runtime/onnxruntime/src/fsmn-vad.h
@@ -28,6 +28,8 @@
         std::vector<std::vector<float>> *in_cache,
         bool is_final);
     void Reset();
+
+    int GetVadSampleRate() { return vad_sample_rate_; };
     
     std::shared_ptr<Ort::Session> vad_session_ = nullptr;
     Ort::Env env_;

--
Gitblit v1.9.1