add ability to use guide tokens for TTS, ref: https://github.com/ggerganov/llama.cpp/pull/11186

This commit is contained in:
Concedo 2025-01-11 17:18:21 +08:00
parent bd38665e1f
commit 07173e84a0
4 changed files with 53 additions and 3 deletions

View file

@ -2215,6 +2215,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
params.vocoder.model = value;
}
).set_examples({LLAMA_EXAMPLE_TTS, LLAMA_EXAMPLE_SERVER}));
add_opt(common_arg(
{"--tts-use-guide-tokens"},
"Use guide tokens to improve TTS word recall",
[](common_params & params) {
params.vocoder.use_guide_tokens = true;
}
).set_examples({LLAMA_EXAMPLE_TTS, LLAMA_EXAMPLE_SERVER}));
// model-specific
add_opt(common_arg(