Skip to content

Commit

Permalink
Only update subtitle if there's audio
Browse files Browse the repository at this point in the history
  • Loading branch information
ylxmf2005 committed Jan 28, 2025
1 parent e543f70 commit 5acb817
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/src/hooks/utils/use-audio-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export const useAudioTask = () => {
if (text) {
appendText(text);
appendAI(text);
updateSubtitle(text);
if (audioBase64) {
// Only update subtitle if there's audio
updateSubtitle(text);
}
}

if (!model) {
Expand Down

0 comments on commit 5acb817

Please sign in to comment.