| | |
| | | // [--vad-quant <string>] [--vad-dir <string>] [--quantize |
| | | // <string>] --model-dir <string> [--] [--version] [-h] |
| | | #include "websocket-server.h" |
| | | #ifdef _WIN32 |
| | | #include "win_func.h" |
| | | #else |
| | | #include <unistd.h> |
| | | #endif |
| | | #include <fstream> |
| | | #include "util.h" |
| | | |
| | |
| | | TCLAP::ValueArg<float> am_scale("", AM_SCALE, "the acoustic scale for beam searching ", false, 10.0, "float"); |
| | | |
| | | TCLAP::ValueArg<std::string> lm_dir("", LM_DIR, |
| | | "the LM model path, which contains compiled models: TLG.fst, config.yaml ", false, "", "string"); |
| | | "the LM model path, which contains compiled models: TLG.fst, config.yaml ", false, "damo/speech_ngram_lm_zh-cn-ai-wesp-fst", "string"); |
| | | TCLAP::ValueArg<std::string> lm_revision( |
| | | "", "lm-revision", "LM model revision", false, "v1.0.1", "string"); |
| | | TCLAP::ValueArg<std::string> hotword("", HOTWORD, |