Yabin Li
2023-05-09 7c4a0666c0e2666b5e9b3aac17d74910d8e9b4a1
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) {