The open-source AI voice studio. Clone, dictate, create.
fix(omnivoice): use the shared INSTRUCT_ENGINES for VoiceDesign and OmniVoice
jamiepined896524c606d
diff --git a/app/src/components/Generation/EngineModelSelector.tsx b/app/src/components/Generation/EngineModelSelector.tsxindex bdf6dd9d..de9961e5 100644--- a/app/src/components/Generation/EngineModelSelector.tsx+++ b/app/src/components/Generation/EngineModelSelector.tsx@@ -59,15 +59,6 @@ const CLONING_ENGINES = new Set([/** Engines that synthesise a voice from a written description. */export const DESIGN_ENGINES = new Set(['qwen_voice_design']);-/**- * Engines that actually honor the instruct kwarg at model level. Base- * Qwen3-TTS accepts it but ignores it, so it is deliberately absent.- */-const INSTRUCT_ENGINES = new Set(['qwen_custom_voice', 'qwen_voice_design']);--export function engineSupportsInstruct(engine?: string): boolean {- return !!engine && INSTRUCT_ENGINES.has(engine);-}function getAvailableOptions(selectedProfile?: VoiceProfileResponse | null) {if (!selectedProfile) return ENGINE_OPTIONS;diff --git a/app/src/components/Generation/FloatingGenerateBox.tsx b/app/src/components/Generation/FloatingGenerateBox.tsxindex 5f3daaa4..b04673c6 100644--- a/app/src/components/Generation/FloatingGenerateBox.tsx+++ b/app/src/components/Generation/FloatingGenerateBox.tsx@@ -25,7 +25,7 @@ import { cn } from '@/lib/utils/cn';import { useGenerationStore } from '@/stores/generationStore';import { useStoryStore } from '@/stores/storyStore';import { useUIStore } from '@/stores/uiStore';-import { EngineModelSelector, engineSupportsInstruct } from './EngineModelSelector';+import { EngineModelSelector } from './EngineModelSelector';import { ParalinguisticInput } from './ParalinguisticInput';interface FloatingGenerateBoxProps {