{"record":{"id":"a491f67a17f60f62","repo":"mudler/LocalAI","slug":"error-transcription-failed-for-s","errorCode":null,"errorMessage":"error: transcription failed for %s\n","messagePattern":"error: transcription failed for (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/go/voxtral/csrc/govoxtral.c","lineNumber":50,"sourceCode":"    }\n\n    return 0;\n}\n\nconst char *transcribe(const char *wav_path) {\n    if (ctx == NULL) {\n        fprintf(stderr, \"error: model not loaded\\n\");\n        return \"\";\n    }\n\n    if (last_result != NULL) {\n        free(last_result);\n        last_result = NULL;\n    }\n\n    last_result = vox_transcribe(ctx, wav_path);\n    if (last_result == NULL) {\n        fprintf(stderr, \"error: transcription failed for %s\\n\", wav_path);\n        return \"\";\n    }\n\n    return last_result;\n}\n\nvoid free_result(void) {\n    if (last_result != NULL) {\n        free(last_result);\n        last_result = NULL;\n    }\n}\n","sourceCodeStart":32,"sourceCodeEnd":63,"githubUrl":"https://github.com/mudler/LocalAI/blob/44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26/backend/go/voxtral/csrc/govoxtral.c#L32-L63","documentation":"Transcription of the given audio file failed. Guard: validate the audio file exists, is decodable, and within length limits before transcribing; propagate the failure reason to the caller.","triggerScenarios":"Thrown at backend/go/voxtral/csrc/govoxtral.c:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the audio file exists and is in a supported format/sample rate.","Check the voxtral logs for the underlying decode/transcription error.","Retry with a shorter or converted audio file to isolate the issue."],"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-15T22:17:37.221Z"}