| funasr/runtime/onnxruntime/src/e2e-vad.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| funasr/runtime/onnxruntime/src/online-feature.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| funasr/runtime/onnxruntime/src/online-feature.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
funasr/runtime/onnxruntime/src/e2e-vad.h
@@ -1,6 +1,7 @@ /** * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. * MIT License (https://opensource.org/licenses/MIT) * Contributed by zhuzizyf(China Telecom). */ #pragma once @@ -442,7 +443,7 @@ } else { data_buf_all_size += waveform.size(); } for (int offset = 0; offset < waveform.size() - frame_sample_length + 1; offset += frame_shift_length) { for (int offset = 0; offset + frame_sample_length -1 < waveform.size(); offset += frame_shift_length) { float sum = 0.0; for (int i = 0; i < frame_sample_length; i++) { sum += waveform[offset + i] * waveform[offset + i]; funasr/runtime/onnxruntime/src/online-feature.cpp
@@ -1,6 +1,7 @@ /** * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. * MIT License (https://opensource.org/licenses/MIT) * Contributed by zhuzizyf(China Telecom). */ #include "online-feature.h" funasr/runtime/onnxruntime/src/online-feature.h
@@ -1,6 +1,7 @@ /** * Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. * MIT License (https://opensource.org/licenses/MIT) * Contributed by zhuzizyf(China Telecom). */ #pragma once #include <vector>