diff --git a/otherarch/qwen3tts/gguf_loader.cpp b/otherarch/qwen3tts/gguf_loader.cpp index 84511cf4e..ab2ffd195 100644 --- a/otherarch/qwen3tts/gguf_loader.cpp +++ b/otherarch/qwen3tts/gguf_loader.cpp @@ -4,6 +4,12 @@ #include #include +#ifdef _WIN32 +# define ttsfseek _fseeki64 +#else +# define ttsfseek fseeko +#endif + namespace qwen3_tts { namespace { @@ -204,7 +210,7 @@ bool load_tensor_data_from_file( read_buf.resize(nbytes); - if (fseek(f, data_offset + offset, SEEK_SET) != 0) { + if (ttsfseek(f, data_offset + offset, SEEK_SET) != 0) { error_msg = "Failed to seek to tensor data: " + std::string(name); fclose(f); release_preferred_backend(backend); diff --git a/otherarch/qwen3tts/tts_transformer.cpp b/otherarch/qwen3tts/tts_transformer.cpp index 9f69b7468..f55d02801 100644 --- a/otherarch/qwen3tts/tts_transformer.cpp +++ b/otherarch/qwen3tts/tts_transformer.cpp @@ -13,6 +13,12 @@ #include #include +#ifdef _WIN32 +# define ttsfseek _fseeki64 +#else +# define ttsfseek fseeko +#endif + namespace qwen3_tts { TTSTransformer::TTSTransformer() = default; @@ -590,7 +596,7 @@ bool TTSTransformer::load_tensor_data(const std::string & path, struct gguf_cont read_buf.resize(nbytes); - if (fseek(f, data_offset + offset, SEEK_SET) != 0) { + if (ttsfseek(f, data_offset + offset, SEEK_SET) != 0) { error_msg_ = "Failed to seek to tensor data: " + std::string(name); fclose(f); release_preferred_backend(backend); diff --git a/otherarch/tts_adapter.cpp b/otherarch/tts_adapter.cpp index c9e01f960..7b0aabce2 100644 --- a/otherarch/tts_adapter.cpp +++ b/otherarch/tts_adapter.cpp @@ -1210,6 +1210,10 @@ static tts_generation_outputs ttstype_generate_qwen3tts(const tts_generation_inp { printf("\nTTS Generating..."); } + if(ttsdebugmode==1 && !tts_is_quiet) + { + qwen3tts_params.print_progress = true; + } if (custom_reference_audio_pcmf32.empty()) { result = qwen3tts_runner.synthesize(prompt, qwen3tts_params);