From 5071e7b4b629338f84ca21ba0c9cdb12e68213d7 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 20 十二月 2023 16:20:17 +0800
Subject: [PATCH] update TimestampSentence & TimestampIsPunctuation

---
 runtime/onnxruntime/src/paraformer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/runtime/onnxruntime/src/paraformer.cpp b/runtime/onnxruntime/src/paraformer.cpp
index 2c78fe5..bb15ac7 100644
--- a/runtime/onnxruntime/src/paraformer.cpp
+++ b/runtime/onnxruntime/src/paraformer.cpp
@@ -466,7 +466,7 @@
     int32_t in_feat_dim = fbank_opts_.mel_opts.num_bins;
 
     std::vector<std::vector<float>> asr_feats;
-    FbankKaldi(MODEL_SAMPLE_RATE, din, len, asr_feats);
+    FbankKaldi(asr_sample_rate, din, len, asr_feats);
     if(asr_feats.size() == 0){
       return "";
     }

--
Gitblit v1.9.1