{"record":{"id":"6eb1861f4d3b2262","repo":"mudler/LocalAI","slug":"3-6eb186","errorCode":"3","errorMessage":"[qwen3-tts-cpp] FATAL: qt_init failed: %s\\n","messagePattern":"\\[qwen3-tts-cpp\\] FATAL: qt_init failed: (.+?)\\\\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/go/qwen3-tts-cpp/cpp/goqwen3ttscpp.cpp","lineNumber":53,"sourceCode":"    }\n    if (!codec_path || codec_path[0] == '\\0') {\n        fprintf(stderr, \"[qwen3-tts-cpp] ERROR: codec_path is required\\n\");\n        return 2;\n    }\n\n    qt_init_params p;\n    qt_init_default_params(&p);\n    p.talker_path = talker_path;\n    p.codec_path = codec_path;\n    p.use_fa = use_fa != 0;\n    p.clamp_fp16 = clamp_fp16 != 0;\n\n    fprintf(stderr, \"[qwen3-tts-cpp] Loading talker=%s codec=%s\\n\", talker_path,\n            codec_path);\n\n    g_ctx = qt_init(&p);\n    if (!g_ctx) {\n        fprintf(stderr, \"[qwen3-tts-cpp] FATAL: qt_init failed: %s\\n\",\n                qt_last_error());\n        return 3;\n    }\n    fprintf(stderr, \"[qwen3-tts-cpp] Model loaded (%s)\\n\", qt_version());\n    return 0;\n}\n\n// Fill a qt_tts_params from the flat wrapper arguments. Unset/zero scalars keep\n// the qt defaults (temperature 0.9, top_k 50, top_p 1.0, rep 1.05, max 2048).\nstatic void fill_params(qt_tts_params *tp, const char *text, const char *lang,\n                        const char *instruct, const char *speaker,\n                        const float *ref_samples, int ref_n,\n                        const char *ref_text, long long seed, float temperature,\n                        int top_k, float top_p, float repetition_penalty,\n                        int max_new_tokens) {\n    qt_tts_default_params(tp);\n    tp->text = text ? text : \"\";\n    if (lang && lang[0] != '\\0')","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/mudler/LocalAI/blob/44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26/backend/go/qwen3-tts-cpp/cpp/goqwen3ttscpp.cpp#L35-L71","documentation":"qt_init failed to initialize the qwen3-tts engine. Guard: verify the model files exist and match the expected format before init; surface the library error string in the LoadModel response.","triggerScenarios":"Thrown at backend/go/qwen3-tts-cpp/cpp/goqwen3ttscpp.cpp:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error detail in the message to see why qt_init failed.","Verify the talker and codec model files are valid GGUF/model files compatible with the qwen3-tts library.","Check that required native libraries are installed and loadable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26","analyzedAt":"2026-08-15T10:13:50.291Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}