zhaomingwork
2023-05-09 c533410c922e742020d7acf9f3776eb3a890d402
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) {