From: Daniel Bevenius Date: Fri, 13 Jun 2025 08:25:25 +0000 (+0200) Subject: cli : fix short name conflict for vad options [no ci] (#3247) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9df8d54bcbf0c9e442adb73b441233d352567f37;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cli : fix short name conflict for vad options [no ci] (#3247) This commit fixes a short name conflict whisper-cli for `--vad-min-speech-duration-ms` and `--vad-min-silence-duration-ms` which currently have the same short name `-vsd`. Refs: https://github.com/ggml-org/whisper.cpp/pull/3246#pullrequestreview-2923800114 --- diff --git a/examples/cli/cli.cpp b/examples/cli/cli.cpp index 02327ed8..f73ed9ae 100644 --- a/examples/cli/cli.cpp +++ b/examples/cli/cli.cpp @@ -202,7 +202,7 @@ static bool whisper_params_parse(int argc, char ** argv, whisper_params & params else if ( arg == "--vad") { params.vad = true; } else if (arg == "-vm" || arg == "--vad-model") { params.vad_model = ARGV_NEXT; } else if (arg == "-vt" || arg == "--vad-threshold") { params.vad_threshold = std::stof(ARGV_NEXT); } - else if (arg == "-vsd" || arg == "--vad-min-speech-duration-ms") { params.vad_min_speech_duration_ms = std::stoi(ARGV_NEXT); } + else if (arg == "-vspd" || arg == "--vad-min-speech-duration-ms") { params.vad_min_speech_duration_ms = std::stoi(ARGV_NEXT); } else if (arg == "-vsd" || arg == "--vad-min-silence-duration-ms") { params.vad_min_speech_duration_ms = std::stoi(ARGV_NEXT); } else if (arg == "-vmsd" || arg == "--vad-max-speech-duration-s") { params.vad_max_speech_duration_s = std::stof(ARGV_NEXT); } else if (arg == "-vp" || arg == "--vad-speech-pad-ms") { params.vad_speech_pad_ms = std::stoi(ARGV_NEXT); }