This commit is contained in:
wangjiyu 2025-04-15 17:42:47 +08:00
parent 34306dcaca
commit f8daa9c277
1 changed files with 2 additions and 0 deletions

View File

@ -107,7 +107,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
std::cout << "当前线程是否持有 GIL: " << PyGILState_Check() << std::endl;
try {
py::object str_repr = py::str(dtype);
std::cout << "str_repr" << std::endl;
if(str_repr.ptr() != Py_None) {
std::cout << "str_repr is not null" << std::endl;
std::string dtype_str = py::extract<std::string>(str_repr);
std::cout << "数据类型: " << dtype_str << std::endl;
} else {