From 90a0349349d5f4093ad5a666de296cad6424dbc5 Mon Sep 17 00:00:00 2001 From: LostRuins Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 19 Jan 2025 21:43:59 +0800 Subject: [PATCH] recommended way to check if the version is 0.3, as requested by ngxson recommended way to check if the version is 0.3, as requested by ngxson --- examples/tts/tts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tts/tts.cpp b/examples/tts/tts.cpp index 57b5ee33b..4e9fe3e0c 100644 --- a/examples/tts/tts.cpp +++ b/examples/tts/tts.cpp @@ -523,7 +523,7 @@ int main(int argc, char ** argv) { std::vector guide_tokens; //determine OuteTTS version and vocab code offset. v0.2 does not have <|space|>, but v0.3 does - const bool is_version_0_3 = common_tokenize(vocab,"<|space|>",false,true).size()==1; + const bool is_version_0_3 = (common_get_builtin_chat_template(model_ttc) == "outetts-0.3"); //determine the offset of the first audio code token const int cts_offset = common_tokenize(vocab,"<|0|>",false,true)[0];