From f2e605cd287aae2dcd2d269c540b2395c67aadb7 Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期一, 13 三月 2023 15:25:57 +0800
Subject: [PATCH] add tp inference in egs_modelscope
---
funasr/runtime/onnxruntime/src/Audio.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/Audio.cpp b/funasr/runtime/onnxruntime/src/Audio.cpp
index d5d0746..43dfb6b 100644
--- a/funasr/runtime/onnxruntime/src/Audio.cpp
+++ b/funasr/runtime/onnxruntime/src/Audio.cpp
@@ -116,6 +116,12 @@
speech_len);
}
+float Audio::get_time_len()
+{
+ return (float)speech_len / 16000;
+ //speech_len);
+}
+
bool Audio::loadwav(const char *filename)
{
--
Gitblit v1.9.1