From 94de39dde2e616a01683c518023d0fab72b4e103 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 19 二月 2024 22:21:50 +0800
Subject: [PATCH] aishell example

---
 runtime/websocket/bin/websocket-server.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/runtime/websocket/bin/websocket-server.h b/runtime/websocket/bin/websocket-server.h
index d511071..d18bcab 100644
--- a/runtime/websocket/bin/websocket-server.h
+++ b/runtime/websocket/bin/websocket-server.h
@@ -50,6 +50,7 @@
 typedef struct {
     std::string msg="";
     std::string stamp="";
+    std::string stamp_sents;
     std::string tpass_msg="";
     float snippet_time=0;
 } FUNASR_RECOG_RESULT;
@@ -57,9 +58,9 @@
 typedef struct {
   nlohmann::json msg;
   std::shared_ptr<std::vector<char>> samples;
-  std::shared_ptr<std::vector<std::vector<float>>> hotwords_embedding=NULL;
+  std::shared_ptr<std::vector<std::vector<float>>> hotwords_embedding=nullptr;
   std::shared_ptr<websocketpp::lib::mutex> thread_lock; // lock for each connection
-  FUNASR_DEC_HANDLE decoder_handle=NULL;
+  FUNASR_DEC_HANDLE decoder_handle=nullptr;
 } FUNASR_MESSAGE;
 
 // See https://wiki.mozilla.org/Security/Server_Side_TLS for more details about

--
Gitblit v1.9.1