| | |
| | | */ |
| | | /* 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" |
| | |
| | | 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; |
| | | } |
| | | |