From c533410c922e742020d7acf9f3776eb3a890d402 Mon Sep 17 00:00:00 2001
From: zhaomingwork <zhaomingwork@qq.com>
Date: 星期二, 09 五月 2023 18:21:21 +0800
Subject: [PATCH] modified for new asr api
---
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