From 7c4a0666c0e2666b5e9b3aac17d74910d8e9b4a1 Mon Sep 17 00:00:00 2001
From: Yabin Li <wucong.lyb@alibaba-inc.com>
Date: 星期二, 09 五月 2023 18:35:07 +0800
Subject: [PATCH] Merge pull request #481 from zhaomingwork/update-websocket-cpp
---
funasr/runtime/websocket/websocketsrv.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/runtime/websocket/websocketsrv.cpp b/funasr/runtime/websocket/websocketsrv.cpp
index 7e54210..9e56667 100644
--- a/funasr/runtime/websocket/websocketsrv.cpp
+++ b/funasr/runtime/websocket/websocketsrv.cpp
@@ -25,7 +25,7 @@
if (!buffer.empty()) {
// fout.write(buffer.data(), buffer.size());
// feed data to asr engine
- FUNASR_RESULT Result = FunASRRecogPCMBuffer(
+ FUNASR_RESULT Result = FunOfflineRecogPCMBuffer(
asr_hanlde, buffer.data(), buffer.size(), 16000, RASR_NONE, NULL);
std::string asr_result =
@@ -149,7 +149,7 @@
try {
// init model with api
- asr_hanlde = FunASRInit(model_path, thread_num);
+ asr_hanlde = FunOfflineInit(model_path, thread_num);
std::cout << "model ready" << std::endl;
} catch (const std::exception& e) {
--
Gitblit v1.9.1