|
@@ -102,8 +102,8 @@ as the device_name.
|
|
|
fprintf(stderr, "%s\n", model_conf.ToString().c_str());
|
|
|
|
|
|
sherpa_ncnn::DecoderConfig decoder_conf;
|
|
|
- if (argc == 10) {
|
|
|
- std::string method = argv[9];
|
|
|
+ if (argc == 11) {
|
|
|
+ std::string method = argv[10];
|
|
|
if (method.compare("greedy_search") ||
|
|
|
method.compare("modified_beam_search")) {
|
|
|
decoder_conf.method = method;
|
|
@@ -114,7 +114,7 @@ as the device_name.
|
|
|
|
|
|
sherpa_ncnn::EndpointConfig endpoint_config;
|
|
|
endpoint_config.rule1.min_trailing_silence = 2.4;
|
|
|
- endpoint_config.rule2.min_trailing_silence = 0.8; // <--tune this value !
|
|
|
+ endpoint_config.rule2.min_trailing_silence = 1.2; // <--tune this value !
|
|
|
endpoint_config.rule3.min_utterance_length = 300;
|
|
|
|
|
|
decoder_conf.endpoint_config = endpoint_config;
|