From 2ba4683eb2ce42eec91250debe88b424cbc2d67f Mon Sep 17 00:00:00 2001
From: speech_asr <wangjiaming.wjm@alibaba-inc.com>
Date: 星期四, 16 三月 2023 11:14:42 +0800
Subject: [PATCH] update
---
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