diff --git a/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx b/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx index afce7b6..e6d3fb8 100644 --- a/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx +++ b/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx @@ -224,6 +224,7 @@ export default function VoiceDubbing() { const currentSpeed = useProjectStore.getState().voiceSpeed; const currentVolume = useProjectStore.getState().voiceVolume; const currentPitch = useProjectStore.getState().voicePitch; + if (!currentVoiceId) { toast.warning('请先选择音色'); setIsGenerating(false); return; } const progress = useProgressStore.getState(); setIsGenerating(true);