{"record":{"id":"ac8ed26e2a82d693","repo":"cjpais/Handy","slug":"gigaam-transcription-failed","errorCode":null,"errorMessage":"GigaAM transcription failed: {}","messagePattern":"GigaAM transcription failed: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src-tauri/src/managers/transcription.rs","lineNumber":1397,"sourceCode":"                            \"ja\" => Some(\"ja\".to_string()),\n                            \"ko\" => Some(\"ko\".to_string()),\n                            \"yue\" => Some(\"yue\".to_string()),\n                            _ => None,\n                        };\n                        applied_language_hint = language.clone();\n                        let params = SenseVoiceParams {\n                            language,\n                            use_itn: Some(true),\n                        };\n                        sense_voice_engine\n                            .transcribe_with(&audio, &params)\n                            .map(|r| r.text)\n                            .map_err(|e| anyhow::anyhow!(\"SenseVoice transcription failed: {}\", e))\n                    }\n                    LoadedEngine::GigaAM(gigaam_engine) => gigaam_engine\n                        .transcribe(&audio, &TranscribeOptions::default())\n                        .map(|r| r.text)\n                        .map_err(|e| anyhow::anyhow!(\"GigaAM transcription failed: {}\", e)),\n                    LoadedEngine::Canary(canary_engine) => {\n                        output_was_translated = settings.translate_to_english;\n                        let lang = if validated_language == \"auto\" {\n                            None\n                        } else {\n                            Some(validated_language.clone())\n                        };\n                        applied_language_hint = lang.clone();\n                        let options = TranscribeOptions {\n                            language: lang,\n                            translate: settings.translate_to_english,\n                            ..Default::default()\n                        };\n                        canary_engine\n                            .transcribe(&audio, &options)\n                            .map(|r| r.text)\n                            .map_err(|e| anyhow::anyhow!(\"Canary transcription failed: {}\", e))\n                    }","sourceCodeStart":1379,"sourceCodeEnd":1415,"githubUrl":"https://github.com/cjpais/Handy/blob/ba10ce1943ef34e93c09494027fc0b9ced2e8a44/src-tauri/src/managers/transcription.rs#L1379-L1415","documentation":"The GigaAM branch calls gigaam_engine.transcribe(&audio, &TranscribeOptions::default()); this error wraps the ONNX Runtime failure from the GigaAM Int8 graph, with the library error chained after the colon.","triggerScenarios":"ORT inference fails during GigaAM transcription: provider runtime error, invalid input from too-short/empty-after-trim audio, or corrupted model graph.","commonSituations":"Accelerator/driver issues; short utterances; model file corruption after interrupted download or disk issues.","solutions":["Read the chained ORT error and switch accelerator to CPU if provider-related","Retry with longer audio","Re-download the GigaAM model","Check system stability (GPU driver, thermals) if failures are intermittent"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"match manager.transcribe(audio.clone()) {\n    Err(e) if e.to_string().contains(\"GigaAM transcription failed\") => manager.transcribe(audio),\n    other => other,\n}","preventionTips":["Discard near-zero-length audio before transcription","Monitor GPU stability; switch to CPU accelerator for triage","Re-download the model if errors are reproducible"],"tags":["rust","onnx","gigaam","inference"],"backgroundTag":"model-inference-failed","analyzedSha":"ba10ce1943ef34e93c09494027fc0b9ced2e8a44","analyzedAt":"2026-08-17T10:29:55.597Z","contentChangedAt":"2026-08-17T10:29:55.597Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}