Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

fix(clone): never dead-end on a missing speech-to-text model

velixio86b448debc48
diff --git a/CHANGELOG.md b/CHANGELOG.md
index abbe0d4ad..1cac43f38 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -180,6 +180,7 @@ This release also adds a GPU acceleration panel with honest Radeon reporting, th
### Fixed
+- Cloning without a transcript no longer dead-ends when speech-to-text is missing: the transcript preview reuses any installed model, and the Clone page offers a one-click install of the recommended one (#PR)
- Dubbing can replace an uploaded source with a link without removing it first (#2944) — thanks @mvanhorn!
- Open WebUI lists VoiceStudio voice profiles: each voice from `/v1/audio/voices` also carries the `id` field it reads (#2934) — thanks @chiarorosa!
- Renders no longer wait out a network timeout each time the AudioSeal watermark checkpoint can't be fetched; a failed load is retried after 10 minutes (#2933) — thanks @chiarorosa!
diff --git a/backend/api/routers/capture.py b/backend/api/routers/capture.py
index b3ef5e2b8..3353756a1 100644
--- a/backend/api/routers/capture.py
+++ b/backend/api/routers/capture.py
@@ -121,6 +121,15 @@ async def transcribe_audio(
if transcribe_missing is None:
missing = None
use_active_asr = True
+ # The selected offline engine's weights are absent, but a reference
+ # transcript does not need that engine: generate transcribes through
+ # any installed recognizer, so the preview must too (#2929/#2678).
+ reference_fallback = False
+ if missing is not None and requested_mode == "reference":
+ from services.asr_backend import reference_asr_installed
+ reference_fallback = await asyncio.to_thread(reference_asr_installed)
+ if reference_fallback:
+ missing = None
if missing is not None:
raise HTTPException(
status_code=409,
@@ -137,6 +146,9 @@ async def transcribe_audio(
return dictation_transcribe_kwargs(backend)
def _run():
+ if reference_fallback:
+ from services.asr_backend import transcribe_reference
+ return {"text": transcribe_reference(tmp.name) or ""}, "reference", None
if use_active_asr:
# Accurate mode: full WhisperX with forced alignment —
# for when the user explicitly wants word-level timing.
diff --git a/backend/services/asr_backend.py b/backend/services/asr_backend.py
index f0a2b0806..bfc13d4ad 100644
--- a/backend/services/asr_backend.py
+++ b/backend/services/asr_backend.py
@@ -3497,6 +3497,27 @@ def transcribe_reference(audio_path: str, *, release_after: bool = False) -> str
return text or None
+def reference_asr_installed() -> bool:
+ """True when :func:`transcribe_reference` has a local recognizer to try.
+
+ The selected offline engine, the selected dictation engine, or any
+ installed fallback counts: a user whose selection points at a model that
+ is not on disk, but who has another speech-to-text model installed, must
+ not be told that none exists (#2929/#2678). Never downloads, never raises.
+ """
+ try:
+ if asr_model_missing_error(
+ require_installed=active_backend_id() != "openai-compat-asr",
+ ) is None:
+ return True
+ if asr_model_missing_error(purpose="dictation", require_installed=True) is None:
+ return True
+ return bool(_installed_reference_fallbacks([]))
+ except Exception: # noqa: BLE001 — a failed probe must not block typing a transcript
+ logger.warning("reference ASR availability probe failed", exc_info=True)
+ return False
+
+
_capture_backend: ASRBackend | None = None
# The sherpa model id the cached capture backend was built for, so a model
# switch in Settings rebuilds the singleton instead of serving the old model.
diff --git a/docs/install/troubleshooting.md b/docs/install/troubleshooting.md
index a11e1cc23..d3553542e 100644
--- a/docs/install/troubleshooting.md
+++ b/docs/install/troubleshooting.md
@@ -89,6 +89,10 @@ Sidecar stderr is scrubbed for home directories and secrets before logging.
This does not download an ASR model automatically: if no installed
recognizer can transcribe the clip and no local model fallback is available,
provide the matching transcript or explicitly install a speech-to-text model.
+The Clone page offers an **Install** button for the model recommended for your
+hardware (it downloads only after you click it) and then retries the transcript.
+The transcript preview also uses any other installed speech-to-text model when
+the selected one is not on disk.
Unknown or unverifiable ASR selections are skipped for automatic reference
transcription. An explicitly selected OpenAI-compatible ASR provider retains its
opt-in behavior; it does not need local model weights. Default ASR remains local.
diff --git a/docs/profile-portraits.md b/docs/profile-portraits.md
index 16a375727..16e4fdf18 100644
--- a/docs/profile-portraits.md
+++ b/docs/profile-portraits.md
@@ -73,7 +73,8 @@ The save-profile view uses the editor's full content width. New uploaded or
recorded references use the selected local dictation pipeline (including its
configured Parakeet/Whisper fallback). Installed-model readiness is checked before
transcription; no model downloads are initiated. Missing models leave manual
-transcript entry available. ASR never overwrites text edited while it runs.
+transcript entry available, next to an install button for the recommended model
+(a download starts only when you click it, then transcription retries). ASR never overwrites text edited while it runs.
Saving waits for transcription; using the reference without saving remains possible.
Saved-voice pencil buttons, and **Edit voice** on the selected voice in the
diff --git a/electron/src/renderer/src/features/clone/profile-save.test.tsx b/electron/src/renderer/src/features/clone/profile-save.test.tsx
index 7c9d751b1..245160219 100644
--- a/electron/src/renderer/src/features/clone/profile-save.test.tsx
+++ b/electron/src/renderer/src/features/clone/profile-save.test.tsx
@@ -2,7 +2,15 @@ import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-libra
import type { ReactNode } from 'react';
import { afterEach, expect, it, vi } from 'vitest';
-const mock = vi.hoisted(() => ({ save: vi.fn() }));
+const mock = vi.hoisted(() => ({ save: vi.fn(), start: vi.fn() }));
+vi.mock('@/hooks/use-reference-asr-install', () => ({
+ useReferenceAsrInstall: () => ({
+ start: mock.start,
+ installing: false,
+ progress: null,
+ error: null,
+ }),
+}));
vi.mock('@/hooks/use-profiles', () => ({
useCreateCloneProfile: () => ({ mutateAsync: mock.save, isPending: false }),
useProfiles: () => ({ data: [] }),
@@ -44,7 +52,7 @@ it('blocks direct submission while transcribing and permits saving afterward', a
it('opens optional details and explains a failed automatic transcription', async () => {
const retry = vi.fn();
- render(<OptionalDetails transcription={{ state: 'failed', retry }} />);
+ render(<OptionalDetails transcription={{ state: 'failed', recommended: null, retry }} />);
expect(await screen.findByText('transcriptions.failed')).toHaveClass('text-destructive');
fireEvent.click(screen.getByRole('button', { name: 'referenceAsr.retry' }));
@@ -55,7 +63,7 @@ it('hands missing reference ASR to the app-operation repair flow without losing
const retry = vi.fn();
const listener = vi.fn();
window.addEventListener('voicestudio:repair-agent-open', listener);
- render(<OptionalDetails transcription={{ state: 'unavailable', retry }} />);
+ render(<OptionalDetails transcription={{ state: 'unavailable', recommended: null, retry }} />);
fireEvent.click(screen.getByRole('button', { name: 'repairAgent.fix' }));
@@ -67,3 +75,13 @@ it('hands missing reference ASR to the app-operation repair flow without losing
expect(retry).toHaveBeenCalledOnce();
window.removeEventListener('voicestudio:repair-agent-open', listener);
});
+
+it('offers a one-click install of the recommended speech-to-text model', () => {
+ const retry = vi.fn();
+ const recommended = { repo_id: 'Systran/faster-whisper-large-v3', label: 'Whisper', size_gb: 3 };
+ render(<OptionalDetails transcription={{ state: 'unavailable', retry, recommended }} />);
+
+ expect(mock.start).not.toHaveBeenCalled();
+ fireEvent.click(screen.getByRole('button', { name: 'referenceAsr.install' }));
+ expect(mock.start).toHaveBeenCalledOnce();
+});
diff --git a/electron/src/renderer/src/features/clone/reference-panel.tsx b/electron/src/renderer/src/features/clone/reference-panel.tsx
index a68a086d8..c7c3b91b0 100644
--- a/electron/src/renderer/src/features/clone/reference-panel.tsx
+++ b/electron/src/renderer/src/features/clone/reference-panel.tsx
@@ -1,6 +1,8 @@
import { Link } from '@tanstack/react-router';
import { AgentFixButton } from '@/components/agent-fix-button';
import type { useReferenceTranscript } from '@/hooks/use-reference-transcript';
+import { useReferenceAsrInstall } from '@/hooks/use-reference-asr-install';
+import { Progress } from '@/components/ui/progress';
import { profileAudioUrl } from '@/lib/api/client';
import { PortraitSearch } from './portrait-search';
import { ProfileImageEditor } from './profile-image-editor';
@@ -8,6 +10,7 @@ import { ProfilePhoto } from './profile-photo';
import { useForm } from '@tanstack/react-form';
import {
ChevronDownIcon,
+ DownloadIcon,
FileAudioIcon,
LoaderCircleIcon,
MicIcon,
@@ -190,6 +193,45 @@ export function SaveProfileForm({
);
}
+function ReferenceAsrInstall({
+ model,
+ onInstalled,
+}: {
+ model: NonNullable<ReturnType<typeof useReferenceTranscript>['recommended']>;
+ onInstalled: () => void;
+}) {
+ const { t } = useTranslation();
+ const install = useReferenceAsrInstall(model.repo_id, onInstalled);
+ return (
+ <div className="space-y-2">
+ <Button
+ type="button"
+ size="sm"
+ disabled={install.installing}
+ onClick={() => void install.start()}
+ >
+ {install.installing ? (
+ <LoaderCircleIcon className="animate-spin motion-reduce:animate-none" />
+ ) : (
+ <DownloadIcon />
+ )}
+ {t('referenceAsr.install', { label: model.label, size: model.size_gb })}
+ </Button>
+ {install.installing && (
+ <div role="status" className="space-y-1">
+ <span>{t('referenceAsr.installing', { label: model.label })}</span>
+ <Progress value={install.progress} aria-label={t('modelMaintenance.downloading')} />
+ </div>
+ )}
+ {install.error && (
+ <p role="alert" className="text-destructive">
+ {t('asr_missing.install_failed', { message: install.error })}
+ </p>
+ )}
+ </div>
+ );
+}
+
export function OptionalDetails({
transcription,
}: {
@@ -251,6 +293,12 @@ export function OptionalDetails({
{transcription?.state === 'unavailable' && (
<div className="space-y-1 text-xs text-muted-foreground">
<p>{t('asr_missing.message')}</p>
+ {transcription.recommended && (
+ <ReferenceAsrInstall
+ model={transcription.recommended}
+ onInstalled={transcription.retry}
+ />
+ )}
<div className="flex flex-wrap items-center gap-2">
<AgentFixButton request="Restore local reference-audio transcription. Install and activate the best compatible ASR model through VoiceStudio, preserve the uploaded reference and manual transcript, then verify automatic transcription is ready to retry." />
<Button
diff --git a/electron/src/renderer/src/hooks/use-reference-asr-install.test.tsx b/electron/src/renderer/src/hooks/use-reference-asr-install.test.tsx
new file mode 100644
index 000000000..56a6a7000
--- /dev/null
+++ b/electron/src/renderer/src/hooks/use-reference-asr-install.test.tsx
@@ -0,0 +1,53 @@
+import { act, renderHook, waitFor } from '@testing-library/react';
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
+import type { ReactNode } from 'react';
+import { beforeEach, expect, it, vi } from 'vitest';
+import { useReferenceAsrInstall } from './use-reference-asr-install';
+import { apiJson } from '@/lib/api/client';
+
+const jobs = vi.hoisted(() => ({ data: undefined as unknown }));
+vi.mock('@/hooks/use-model-install-sync', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('@/hooks/use-model-install-sync')>()),
+ useModelInstallJobs: () => ({ data: jobs.data }),
+}));
+vi.mock('@/lib/api/client', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('@/lib/api/client')>()),
+ apiJson: vi.fn(),
+}));
+const api = vi.mocked(apiJson);
+const wrapper = ({ children }: { children: ReactNode }) => (
+ <QueryClientProvider client={new QueryClient()}>{children}</QueryClientProvider>
+);
+beforeEach(() => {
+ api.mockReset();
+ api.mockResolvedValue({});
+ jobs.data = { jobs: [] };
+});
+
+it('downloads nothing until started, then reports completion once', async () => {
+ const done = vi.fn();
+ const { result, rerender } = renderHook(() => useReferenceAsrInstall('a/b', done), { wrapper });
+ expect(api).not.toHaveBeenCalled();
+ await act(async () => result.current.start());
+ expect(api).toHaveBeenCalledWith(
+ '/models/install',
+ expect.objectContaining({ body: JSON.stringify({ repo_id: 'a/b' }) }),
+ );
+ jobs.data = { jobs: [{ repo_id: 'a/b', state: 'downloading', bytes_done: 1, total_bytes: 4 }] };
+ rerender();
+ await waitFor(() => expect(result.current.progress).toBe(25));
+ expect(done).not.toHaveBeenCalled();
+ jobs.data = { jobs: [{ repo_id: 'a/b', state: 'done' }] };
+ rerender();
+ await waitFor(() => expect(done).toHaveBeenCalledOnce());
+});
+
+it('surfaces a failed install without retrying the transcript', async () => {
+ const done = vi.fn();
+ const { result, rerender } = renderHook(() => useReferenceAsrInstall('a/b', done), { wrapper });
+ await act(async () => result.current.start());
+ jobs.data = { jobs: [{ repo_id: 'a/b', state: 'failed', error: 'offline' }] };
+ rerender();
+ await waitFor(() => expect(result.current.error).toBe('offline'));
+ expect(done).not.toHaveBeenCalled();
+});
diff --git a/electron/src/renderer/src/hooks/use-reference-asr-install.ts b/electron/src/renderer/src/hooks/use-reference-asr-install.ts
new file mode 100644
index 000000000..87578635d
--- /dev/null
+++ b/electron/src/renderer/src/hooks/use-reference-asr-install.ts
@@ -0,0 +1,58 @@
+import { useEffect, useRef, useState } from 'react';
+import { useQueryClient } from '@tanstack/react-query';
+import { apiJson, describeError } from '@/lib/api/client';
+import { TERMINAL_MODEL_INSTALL_STATES, useModelInstallJobs } from '@/hooks/use-model-install-sync';
+
+/**
+ * One-click install of the speech-to-text model the backend recommended for
+ * this machine, through the existing install job. Nothing downloads until
+ * `start` is called; `onInstalled` fires once the job finishes.
+ */
+export function useReferenceAsrInstall(repoId: string | undefined, onInstalled: () => void) {
+ const client = useQueryClient();
+ const jobs = useModelInstallJobs();
+ const [active, setActive] = useState(false);
+ const [error, setError] = useState<string | null>(null);
+ const seen = useRef(false);
+ const job = jobs.data?.jobs.find((item) => item.repo_id === repoId);
+ const progress =
+ job?.total_bytes && job.total_bytes > 0
+ ? Math.min(100, Math.round(((job.bytes_done ?? 0) / job.total_bytes) * 100))
+ : null;
+
+ useEffect(() => {
+ if (!active || !jobs.data) return;
+ if (job && !TERMINAL_MODEL_INSTALL_STATES.has(job.state)) {
+ seen.current = true;
+ return;
+ }
+ if (!seen.current && !job) return;
+ const failed = job && job.state !== 'done';
+ setActive(false);
+ seen.current = false;
+ if (failed) {
+ setError(job.error || job.state);
+ return;
+ }
+ void client.invalidateQueries({ queryKey: ['model-catalogue'] }).catch(() => undefined);
+ onInstalled();
+ }, [active, client, job, jobs.data, onInstalled]);
+
+ const start = async () => {
+ if (!repoId || active) return;
+ setError(null);
+ seen.current = false;
+ setActive(true);
+ try {
+ await apiJson('/models/install', {
+ method: 'POST',
+ body: JSON.stringify({ repo_id: repoId }),
+ });
+ await client.invalidateQueries({ queryKey: ['model-install-jobs'] });
+ } catch (e) {
+ setActive(false);
+ setError(describeError(e));
+ }
+ };
+ return { start, installing: active, progress, error };
+}
diff --git a/electron/src/renderer/src/hooks/use-reference-transcript.test.ts b/electron/src/renderer/src/hooks/use-reference-transcript.test.ts
index ce89eb7e3..d9c3e7779 100644
--- a/electron/src/renderer/src/hooks/use-reference-transcript.test.ts
+++ b/electron/src/renderer/src/hooks/use-reference-transcript.test.ts
@@ -28,6 +28,16 @@ it('shows unavailable when the backend reports the selected ASR model is missing
expect(cloneSettingsStore.state.refText).toBe('');
});
+it('keeps the backend-recommended model so the UI can offer to install it', async () => {
+ const recommended = { repo_id: 'Systran/faster-whisper-large-v3', label: 'Whisper', size_gb: 3 };
+ api.mockRejectedValueOnce(
+ new ApiError(409, 'ASR model missing', { detail: { error: 'asr_model_missing', recommended } }),
+ );
+ const { result } = renderHook(() => useReferenceTranscript(file));
+ await waitFor(() => expect(result.current.state).toBe('unavailable'));
+ expect(result.current.recommended).toEqual(recommended);
+});
+
it('uses selected capture settings and stores the raw transcript', async () => {
api.mockResolvedValueOnce({ text: ' Hello there ' });
const { result } = renderHook(() => useReferenceTranscript(file));
diff --git a/electron/src/renderer/src/hooks/use-reference-transcript.ts b/electron/src/renderer/src/hooks/use-reference-transcript.ts
index 74bec02cb..20e6896ca 100644
--- a/electron/src/renderer/src/hooks/use-reference-transcript.ts
+++ b/electron/src/renderer/src/hooks/use-reference-transcript.ts
@@ -13,9 +13,17 @@ import { beginAppActivity } from '@/lib/app-activity';
* engine list loaded late, or the user switched engines), that machine
* transcript is cleared; a transcript the user edited is kept.
*/
+export interface RecommendedAsrModel {
+ repo_id: string;
+ label: string;
+ size_gb: number;
+}
+
export function useReferenceTranscript(file: File | null, { skip = false } = {}) {
const [state, setState] = useState<'idle' | 'busy' | 'ready' | 'unavailable' | 'failed'>('idle');
const [attempt, setAttempt] = useState(0);
+ // The model the backend offers when none is installed (hardware-aware).
+ const [recommended, setRecommended] = useState<RecommendedAsrModel | null>(null);
// The transcript this hook last wrote, so it can be withdrawn when `skip`
// turns true without touching anything the user typed.
const autoFilled = useRef<string | null>(null);
@@ -32,6 +40,7 @@ export function useReferenceTranscript(file: File | null, { skip = false } = {})
const finishActivity = beginAppActivity('transcription');
const before = cloneSettingsStore.state.refText;
setState('busy');
+ setRecommended(null);
void (async () => {
try {
const body = new FormData();
@@ -62,6 +71,14 @@ export function useReferenceTranscript(file: File | null, { skip = false } = {})
'error' in detail &&
detail.error === 'asr_model_missing' &&
!('reason' in detail && detail.reason === 'verification_failed');
+ const offer = missing
+ ? (detail as { recommended?: Partial<RecommendedAsrModel> }).recommended
+ : null;
+ setRecommended(
+ offer && typeof offer.repo_id === 'string' && typeof offer.label === 'string'
+ ? { repo_id: offer.repo_id, label: offer.label, size_gb: Number(offer.size_gb) || 0 }
+ : null,
+ );
setState(missing ? 'unavailable' : 'failed');
}
} finally {
@@ -73,5 +90,5 @@ export function useReferenceTranscript(file: File | null, { skip = false } = {})
finishActivity();
};
}, [file, attempt, skip]);
- return { state, retry: () => setAttempt((value) => value + 1) };
+ return { state, recommended, retry: () => setAttempt((value) => value + 1) };
}
diff --git a/electron/src/renderer/src/i18n/locales/ar.json b/electron/src/renderer/src/i18n/locales/ar.json
index 878488ce8..b3f6144e2 100644
--- a/electron/src/renderer/src/i18n/locales/ar.json
+++ b/electron/src/renderer/src/i18n/locales/ar.json
@@ -360,7 +360,9 @@
},
"referenceAsr": {
"busy": "جارٍ النسخ…",
- "retry": "أعد محاولة النسخ"
+ "retry": "أعد محاولة النسخ",
+ "install": "ثبّت {{label}} ({{size}} غيغابايت) للنسخ التلقائي",
+ "installing": "جارٍ تنزيل {{label}}. ستُعاد محاولة النسخ عند الانتهاء."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/de.json b/electron/src/renderer/src/i18n/locales/de.json
index 3a476d101..9203965bd 100644
--- a/electron/src/renderer/src/i18n/locales/de.json
+++ b/electron/src/renderer/src/i18n/locales/de.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Transkribieren…",
- "retry": "Versuchen Sie die Transkription erneut"
+ "retry": "Versuchen Sie die Transkription erneut",
+ "install": "{{label}} ({{size}} GB) installieren, um automatisch zu transkribieren",
+ "installing": "{{label}} wird heruntergeladen. Die Transkription startet danach erneut."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/en.json b/electron/src/renderer/src/i18n/locales/en.json
index 73cb05747..53e7b7e50 100644
--- a/electron/src/renderer/src/i18n/locales/en.json
+++ b/electron/src/renderer/src/i18n/locales/en.json
@@ -692,7 +692,9 @@
},
"referenceAsr": {
"busy": "Transcribing…",
- "retry": "Retry transcription"
+ "retry": "Retry transcription",
+ "install": "Install {{label}} ({{size}} GB) to transcribe automatically",
+ "installing": "Downloading {{label}}. Transcription retries when it finishes."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/es.json b/electron/src/renderer/src/i18n/locales/es.json
index a96464926..28d3f0a6e 100644
--- a/electron/src/renderer/src/i18n/locales/es.json
+++ b/electron/src/renderer/src/i18n/locales/es.json
@@ -354,7 +354,9 @@
},
"referenceAsr": {
"busy": "Transcribiendo…",
- "retry": "Reintentar la transcripción"
+ "retry": "Reintentar la transcripción",
+ "install": "Instalar {{label}} ({{size}} GB) para transcribir automáticamente",
+ "installing": "Descargando {{label}}. La transcripción se reintentará al terminar."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/fr.json b/electron/src/renderer/src/i18n/locales/fr.json
index 5463ff265..d4cfc5e2f 100644
--- a/electron/src/renderer/src/i18n/locales/fr.json
+++ b/electron/src/renderer/src/i18n/locales/fr.json
@@ -354,7 +354,9 @@
},
"referenceAsr": {
"busy": "Transcription…",
- "retry": "Réessayer la transcription"
+ "retry": "Réessayer la transcription",
+ "install": "Installer {{label}} ({{size}} Go) pour transcrire automatiquement",
+ "installing": "Téléchargement de {{label}}. La transcription reprendra à la fin."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/hi.json b/electron/src/renderer/src/i18n/locales/hi.json
index 97422a188..901d8baa1 100644
--- a/electron/src/renderer/src/i18n/locales/hi.json
+++ b/electron/src/renderer/src/i18n/locales/hi.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "प्रतिलेखन...",
- "retry": "प्रतिलेखन पुनः प्रयास करें"
+ "retry": "प्रतिलेखन पुनः प्रयास करें",
+ "install": "अपने आप ट्रांसक्राइब करने के लिए {{label}} ({{size}} GB) इंस्टॉल करें",
+ "installing": "{{label}} डाउनलोड हो रहा है। पूरा होने पर ट्रांसक्रिप्शन फिर से चलेगा।"
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/id.json b/electron/src/renderer/src/i18n/locales/id.json
index 341c510a7..994a32fdf 100644
--- a/electron/src/renderer/src/i18n/locales/id.json
+++ b/electron/src/renderer/src/i18n/locales/id.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Mentranskripsikan…",
- "retry": "Coba lagi transkripsi"
+ "retry": "Coba lagi transkripsi",
+ "install": "Pasang {{label}} ({{size}} GB) untuk transkripsi otomatis",
+ "installing": "Mengunduh {{label}}. Transkripsi akan diulang setelah selesai."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/it.json b/electron/src/renderer/src/i18n/locales/it.json
index 6d566614d..6306f1907 100644
--- a/electron/src/renderer/src/i18n/locales/it.json
+++ b/electron/src/renderer/src/i18n/locales/it.json
@@ -354,7 +354,9 @@
},
"referenceAsr": {
"busy": "Trascrizione…",
- "retry": "Riprovare la trascrizione"
+ "retry": "Riprovare la trascrizione",
+ "install": "Installa {{label}} ({{size}} GB) per trascrivere automaticamente",
+ "installing": "Download di {{label}} in corso. La trascrizione riprenderà al termine."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/ja.json b/electron/src/renderer/src/i18n/locales/ja.json
index b7591621b..8aafa2ff8 100644
--- a/electron/src/renderer/src/i18n/locales/ja.json
+++ b/electron/src/renderer/src/i18n/locales/ja.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "文字起こし中…",
- "retry": "転写を再試行する"
+ "retry": "転写を再試行する",
+ "install": "自動で文字起こしするには {{label}}({{size}} GB)をインストールしてください",
+ "installing": "{{label}} をダウンロード中です。完了すると文字起こしを再試行します。"
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/ko.json b/electron/src/renderer/src/i18n/locales/ko.json
index 9d1215b8a..b2dc8782e 100644
--- a/electron/src/renderer/src/i18n/locales/ko.json
+++ b/electron/src/renderer/src/i18n/locales/ko.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "받아쓰는 중…",
- "retry": "전사 재시도"
+ "retry": "전사 재시도",
+ "install": "자동 전사를 위해 {{label}}({{size}} GB) 설치",
+ "installing": "{{label}} 다운로드 중입니다. 완료되면 전사를 다시 시도합니다."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/nl.json b/electron/src/renderer/src/i18n/locales/nl.json
index 4b405d9ee..f540b6b22 100644
--- a/electron/src/renderer/src/i18n/locales/nl.json
+++ b/electron/src/renderer/src/i18n/locales/nl.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Transcriberen…",
- "retry": "Probeer de transcriptie opnieuw"
+ "retry": "Probeer de transcriptie opnieuw",
+ "install": "Installeer {{label}} ({{size}} GB) om automatisch te transcriberen",
+ "installing": "{{label}} wordt gedownload. De transcriptie start opnieuw zodra dit klaar is."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/pl.json b/electron/src/renderer/src/i18n/locales/pl.json
index 766ae1ac8..0061fbf66 100644
--- a/electron/src/renderer/src/i18n/locales/pl.json
+++ b/electron/src/renderer/src/i18n/locales/pl.json
@@ -356,7 +356,9 @@
},
"referenceAsr": {
"busy": "Transkrypcja…",
- "retry": "Ponów transkrypcję"
+ "retry": "Ponów transkrypcję",
+ "install": "Zainstaluj {{label}} ({{size}} GB), aby transkrybować automatycznie",
+ "installing": "Pobieranie {{label}}. Transkrypcja zostanie ponowiona po zakończeniu."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/pt.json b/electron/src/renderer/src/i18n/locales/pt.json
index 32dcc75a7..134a21221 100644
--- a/electron/src/renderer/src/i18n/locales/pt.json
+++ b/electron/src/renderer/src/i18n/locales/pt.json
@@ -354,7 +354,9 @@
},
"referenceAsr": {
"busy": "Transcrevendo…",
- "retry": "Tentar novamente a transcrição"
+ "retry": "Tentar novamente a transcrição",
+ "install": "Instalar {{label}} ({{size}} GB) para transcrever automaticamente",
+ "installing": "Baixando {{label}}. A transcrição será repetida ao terminar."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/ru.json b/electron/src/renderer/src/i18n/locales/ru.json
index dde141501..17960ef75 100644
--- a/electron/src/renderer/src/i18n/locales/ru.json
+++ b/electron/src/renderer/src/i18n/locales/ru.json
@@ -356,7 +356,9 @@
},
"referenceAsr": {
"busy": "Расшифровка…",
- "retry": "Повторить транскрипцию"
+ "retry": "Повторить транскрипцию",
+ "install": "Установить {{label}} ({{size}} ГБ) для автоматической расшифровки",
+ "installing": "Загрузка {{label}}. Расшифровка повторится после завершения."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/sv.json b/electron/src/renderer/src/i18n/locales/sv.json
index 25efc2956..9efe165f9 100644
--- a/electron/src/renderer/src/i18n/locales/sv.json
+++ b/electron/src/renderer/src/i18n/locales/sv.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Transkriberar...",
- "retry": "Försök att transkriptera igen"
+ "retry": "Försök att transkriptera igen",
+ "install": "Installera {{label}} ({{size}} GB) för att transkribera automatiskt",
+ "installing": "Laddar ner {{label}}. Transkriberingen försöks igen när det är klart."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/th.json b/electron/src/renderer/src/i18n/locales/th.json
index a1daaace6..a778a59c2 100644
--- a/electron/src/renderer/src/i18n/locales/th.json
+++ b/electron/src/renderer/src/i18n/locales/th.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "กำลังถอดเสียง...",
- "retry": "ลองถอดเสียงอีกครั้ง"
+ "retry": "ลองถอดเสียงอีกครั้ง",
+ "install": "ติดตั้ง {{label}} ({{size}} GB) เพื่อถอดเสียงอัตโนมัติ",
+ "installing": "กำลังดาวน์โหลด {{label}} ระบบจะลองถอดเสียงอีกครั้งเมื่อเสร็จ"
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/tr.json b/electron/src/renderer/src/i18n/locales/tr.json
index 1a11776d0..b295b1750 100644
--- a/electron/src/renderer/src/i18n/locales/tr.json
+++ b/electron/src/renderer/src/i18n/locales/tr.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Metne dönüştürülüyor…",
- "retry": "Transkripsiyonu yeniden dene"
+ "retry": "Transkripsiyonu yeniden dene",
+ "install": "Otomatik yazıya dökmek için {{label}} ({{size}} GB) kurun",
+ "installing": "{{label}} indiriliyor. Bittiğinde yazıya dökme yeniden denenecek."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/uk.json b/electron/src/renderer/src/i18n/locales/uk.json
index 38156c48a..b3e86ce37 100644
--- a/electron/src/renderer/src/i18n/locales/uk.json
+++ b/electron/src/renderer/src/i18n/locales/uk.json
@@ -356,7 +356,9 @@
},
"referenceAsr": {
"busy": "Транскрибування…",
- "retry": "Повторити транскрипцію"
+ "retry": "Повторити транскрипцію",
+ "install": "Установити {{label}} ({{size}} ГБ) для автоматичної розшифровки",
+ "installing": "Завантаження {{label}}. Розшифровка повториться після завершення."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/vi.json b/electron/src/renderer/src/i18n/locales/vi.json
index c4836bb46..4da0d3125 100644
--- a/electron/src/renderer/src/i18n/locales/vi.json
+++ b/electron/src/renderer/src/i18n/locales/vi.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "Phiên âm…",
- "retry": "Thử chép lại"
+ "retry": "Thử chép lại",
+ "install": "Cài {{label}} ({{size}} GB) để tự động phiên âm",
+ "installing": "Đang tải {{label}}. Sẽ thử phiên âm lại khi hoàn tất."
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/zh-CN.json b/electron/src/renderer/src/i18n/locales/zh-CN.json
index 3e13b66f8..1bd529750 100644
--- a/electron/src/renderer/src/i18n/locales/zh-CN.json
+++ b/electron/src/renderer/src/i18n/locales/zh-CN.json
@@ -365,7 +365,9 @@
},
"referenceAsr": {
"busy": "正在抄写…",
- "retry": "重新转录"
+ "retry": "重新转录",
+ "install": "安装 {{label}}({{size}} GB)以自动转写",
+ "installing": "正在下载 {{label}},完成后将重新转写。"
},
"engineSidebar": {
"tts": "TTS",
diff --git a/electron/src/renderer/src/i18n/locales/zh-TW.json b/electron/src/renderer/src/i18n/locales/zh-TW.json
index 6d6927fc8..785c1511e 100644
--- a/electron/src/renderer/src/i18n/locales/zh-TW.json
+++ b/electron/src/renderer/src/i18n/locales/zh-TW.json
@@ -352,7 +352,9 @@
},
"referenceAsr": {
"busy": "正在抄寫…",
- "retry": "重試轉錄"
+ "retry": "重試轉錄",
+ "install": "安裝 {{label}}({{size}} GB)以自動轉寫",
+ "installing": "正在下載 {{label}},完成後將重新轉寫。"
},
"engineSidebar": {
"tts": "TTS",
diff --git a/tests/test_asr_model_missing.py b/tests/test_asr_model_missing.py
index 57d928393..691ff4bf2 100644
--- a/tests/test_asr_model_missing.py
+++ b/tests/test_asr_model_missing.py
@@ -321,6 +321,40 @@ class TestEndpoints:
)
_assert_409(r)
+ def test_reference_transcript_uses_installed_model_when_selection_missing(self, client):
+ """#2929/#2678: the selected engine's weights are absent but another
+ speech-to-text model is installed. generate transcribes through it, so
+ the clone preview must not answer asr_model_missing."""
+ from services import asr_backend
+
+ with _offline_asr_missing(cached=False), \
+ patch.object(asr_backend, "asr_model_missing_error",
+ side_effect=lambda **kw: {"error": "asr_model_missing"}), \
+ patch.object(asr_backend, "_installed_reference_fallbacks",
+ return_value=[object()]), \
+ patch.object(asr_backend, "transcribe_reference",
+ return_value="hello there"):
+ r = client.post(
+ "/transcribe",
+ data={"mode": "reference"},
+ files={"audio": ("t.wav", b"RIFF0000WAVE", "audio/wav")},
+ )
+ assert r.status_code == 200, r.text
+ assert r.json()["text"].strip().lower().startswith("hello")
+
+ def test_reference_transcript_409_when_nothing_installed(self, client):
+ from services import asr_backend
+
+ with _offline_asr_missing(cached=False), \
+ patch.object(asr_backend, "_installed_reference_fallbacks", return_value=[]), \
+ patch.object(asr_backend, "dictation_model_id", return_value=None):
+ r = client.post(
+ "/transcribe",
+ data={"mode": "reference"},
+ files={"audio": ("t.wav", b"RIFF0000WAVE", "audio/wav")},
+ )
+ _assert_409(r)
+
def test_dub_legacy_transcribe_409(self, client, tmp_path):
from api.routers import dub_core
wav = tmp_path / "audio.wav"