From 3dcaa9df2f056fefd87736f1cd1cd32679018ba9 Mon Sep 17 00:00:00 2001
From: zhaomingwork <zhaomingwork@qq.com>
Date: 星期六, 13 五月 2023 07:30:05 +0800
Subject: [PATCH] fix NoneType bug for ws_client.py microphone mode
---
funasr/runtime/onnxruntime/src/resample.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/resample.cpp b/funasr/runtime/onnxruntime/src/resample.cpp
index 0238752..9c74dc8 100644
--- a/funasr/runtime/onnxruntime/src/resample.cpp
+++ b/funasr/runtime/onnxruntime/src/resample.cpp
@@ -31,6 +31,7 @@
#include <cstdlib>
#include <type_traits>
+namespace funasr {
#ifndef M_2PI
#define M_2PI 6.283185307179586476925286766559005
#endif
@@ -303,3 +304,4 @@
}
}
}
+} // namespace funasr
\ No newline at end of file
--
Gitblit v1.9.1