雾聪
2023-11-30 d7f4fe61ff73d6578720e96258d470fcba7e16f6
runtime/websocket/bin/funasr-wss-server-2pass.cpp
@@ -4,14 +4,6 @@
 */
/* 2022-2023 by zhaomingwork */
// io server
// Usage:funasr-wss-server  [--model_thread_num <int>] [--decoder_thread_num
// <int>]
//                    [--io_thread_num <int>] [--port <int>] [--listen_ip
//                    <string>] [--punc-quant <string>] [--punc-dir <string>]
//                    [--vad-quant <string>] [--vad-dir <string>] [--quantize
//                    <string>] --model-dir <string> [--] [--version] [-h]
#include "websocket-server-2pass.h"
#ifdef _WIN32
#include "win_func.h"
@@ -36,8 +28,11 @@
  try {
    google::InitGoogleLogging(argv[0]);
    FLAGS_logtostderr = true;
    TCLAP::CmdLine cmd("funasr-wss-server", ' ', "1.0");
    std::string tpass_version = "";
#ifdef _WIN32
    tpass_version = "0.1.0";
#endif
    TCLAP::CmdLine cmd("funasr-wss-server", ' ', tpass_version);
    TCLAP::ValueArg<std::string> download_model_dir(
        "", "download-model-dir",
        "Download model from Modelscope to download_model_dir", false,
@@ -447,7 +442,7 @@
    funasr::ExtractHws(hotword_path, hws_map_);
    bool is_ssl = false;
    if (!s_certfile.empty()) {
    if (!s_certfile.empty() && access(s_certfile.c_str(), F_OK) == 0) {
      is_ssl = true;
    }