SubtitleEdit/subtitleedit · error · FileNotFoundException

CrispASR executable not found. Install CrispASR via Video →

Error message

CrispASR executable not found. Install CrispASR via Video → Audio to text first.

What it means

FileNotFoundException thrown by EnsureServerRunningAsync when GetCrispAsmExecutable() returns a path that does not exist on disk. The crispasr binary is shared between speech-to-text and TTS, and the error message directs the user to install it through the Video → Audio to text workflow, which is where the CrispAsrDownloadService runs.

Source

Thrown at src/ui/Features/Video/TextToSpeech/Engines/MossTtsCrispAsr.cs:640

        }

        await ServerLock.WaitAsync(ct);
        try
        {
            if (MatchesCurrent())
            {
                return;
            }

            if (_serverProcess != null)
            {
                StopServerInternal();
            }

            var exe = GetCrispAsrExecutable();
            if (!File.Exists(exe))
            {
                throw new FileNotFoundException(
                    "CrispASR executable not found. Install CrispASR via Video → Audio to text first.", exe);
            }

            var modelPath = GetModelPath(modelKey);
            var hasLocalModel = AreModelsInstalled(modelKey);

            var port = FindFreeLoopbackPort();
            var psi = new ProcessStartInfo
            {
                WorkingDirectory = Path.GetDirectoryName(exe) ?? GetSetFolder(),
                FileName = exe,
                UseShellExecute = false,
                CreateNoWindow = true,
                RedirectStandardError = true,
                RedirectStandardOutput = true,
            };
            psi.ArgumentList.Add("--server");
            psi.ArgumentList.Add("--backend");

View on GitHub (pinned to 17a9f07487)

Solutions

  1. Run Video → Audio to text → CrispASR install, which downloads and verifies the binary via CrispAsrDownloadService.
  2. Check IsInstalled() or GetEngineUpdateStatus() before calling Speak() to surface the missing-binary state in the UI rather than at synthesis time.
  3. Verify the path returned by GetCrispAsrExecutable() is accessible and not on a network mount that went offline.
  4. Re-download if antivirus quarantined the file — add an exclusion for the SE TextToSpeech folder.

Example fix

// before — Speak throws at server-start time
await engine.Speak(text, outputFolder, voice, language, region, model, ct);

// after — check first and guide the user
if (!await engine.IsInstalled(region))
{
    await ShowInstallPrompt("Install CrispASR via Video → Audio to text first.");
    return;
}
await engine.Speak(text, outputFolder, voice, language, region, model, ct);
Defensive patterns

Strategy: validation

Validate before calling

// Check before synthesis
if (!File.Exists(MossTtsCrispAsr.GetCrispAsrExecutable()))
{
    await ShowInstallPrompt("Install CrispASR via Video → Audio to text first.");
    return;
}

Type guard

null

Try / catch

catch (FileNotFoundException ex) when (ex.Message.Contains("CrispASR executable not found"))
{
    await ShowInstallDialog(nameof(CrispAsrDownloadService));
    // After install, retry the synthesis
}

Prevention

When it happens

Trigger: Calling Speak() on the MOSS-TTS (CrispASR) engine when File.Exists(GetCrispAsrExecutable()) is false. This happens when the user selected the engine but never installed CrispASR, when the install folder was deleted manually, or when the executable was quarantined by antivirus.

Common situations: First-time user who browsed to the TTS engine dropdown and picked MOSS-TTS without installing the runtime; the CrispASR folder under Se.TextToSpeechFolder was cleaned up by a disk-cleanup tool; the user moved their SE data directory and the relative path broke; antivirus flagged and removed the unsigned binary.

Related errors


AI-assisted analysis of SubtitleEdit/subtitleedit@17a9f07487 (2026-08-13). Data as JSON: /api/errors/ddbdfc27780bc9f1. Report an issue: GitHub.