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 OmniVoiceCrispAsr.EnsureServerRunningAsync when the crispasr executable does not exist at the path returned by GetCrispAsrExecutable(). This is the same shared binary used by MossTtsCrispAsr and the speech-to-text engines, so it is installed through Video → Audio to text.

Source

Thrown at src/ui/Features/Video/TextToSpeech/Engines/OmniVoiceCrispAsr.cs:585

        }

        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. Install CrispASR via Video → Audio to text, which runs CrispAsrDownloadService to fetch and verify the binary.
  2. Call IsInstalled() before attempting synthesis to surface the issue in the UI gracefully.
  3. If the folder was moved, update Se.TextToSpeechFolder to point to the correct location.
  4. Re-add an antivirus exclusion for the SE TextToSpeech folder if the binary keeps disappearing.

Example fix

// before
await engine.Speak(text, ...);

// after — check installation state first
if (!await engine.IsInstalled(region))
{
    await DialogService.ShowWarning("Install CrispASR via Video → Audio to text first.");
    return;
}
Defensive patterns

Strategy: validation

Validate before calling

// Check before synthesis
if (!File.Exists(OmniVoiceCrispAsr.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));
    // Retry after install
}

Prevention

When it happens

Trigger: Calling Speak() on the OmniVoice (CrispASR) engine when the crispasr binary has not been installed or was removed. The check is File.Exists(exe) returning false inside the server-start path.

Common situations: User selected OmniVoice (CrispASR) from the TTS engine list without having installed CrispASR for speech-to-text first; the SE data folder was moved or cleaned; the binary was removed by antivirus or a disk cleanup utility.

Related errors


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