From a42328b06377a8408831ef3d16bba2826a8b9817 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 17 Aug 2025 21:26:25 +0800 Subject: [PATCH] add max tts length 1024 --- otherarch/tts_adapter.cpp | 6 +++++- otherarch/ttscpp/src/dia_model.cpp | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/otherarch/tts_adapter.cpp b/otherarch/tts_adapter.cpp index 6387bc1c5..f9c13b177 100644 --- a/otherarch/tts_adapter.cpp +++ b/otherarch/tts_adapter.cpp @@ -557,7 +557,7 @@ bool ttstype_load_model(const tts_load_model_inputs inputs) // tts init if (is_ttscpp_file) { - ttscpp_config = new generation_configuration("am_adam", 50, 1.0, 1.0, true, "", 0, 1.0); + ttscpp_config = new generation_configuration("am_adam", 50, 1.0, 1.0, true, "", 1024, 1.0); ttscpp_runner = runner_from_file(modelfile_ttc, inputs.threads, ttscpp_config, true); if (ttscpp_runner == nullptr) { printf("\nTTS Load Error: Failed to initialize TTSCPP!\n"); @@ -681,6 +681,10 @@ static tts_generation_outputs ttstype_generate_ttscpp(const tts_generation_input } ttscpp_config->voice = voiceused; + if(!tts_is_quiet) + { + printf("\nTTS Generating..."); + } tts_response response_data; int errorres = generate(ttscpp_runner, prompt, &response_data, ttscpp_config); if(errorres==0) diff --git a/otherarch/ttscpp/src/dia_model.cpp b/otherarch/ttscpp/src/dia_model.cpp index d7ec2685f..ee7524a7b 100644 --- a/otherarch/ttscpp/src/dia_model.cpp +++ b/otherarch/ttscpp/src/dia_model.cpp @@ -2,6 +2,11 @@ void dia_model::assign_weight(std::string name, struct ggml_tensor * tensor) { std::vector parts = split(name, "."); + // GGML_LOG("\nassign_weight %s\n",name.c_str()); + if(name=="GGUF tensor data binary blob") //patch for gguf, idk why this tensor exists + { + return; + } TTS_ASSERT(parts.size() >= 3); if (parts[1] == "encoder") {