Skip to content

Commit

Permalink
chore: 替换改为增加
Browse files Browse the repository at this point in the history
  • Loading branch information
DDMeaqua committed Oct 14, 2024
1 parent f0b9068 commit b5a5558
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,9 @@ export function ChatActions(props: {
};
const onRecognitionEnd = (finalTranscript: string) => {
console.log(finalTranscript);
if (finalTranscript) props.setUserInput(finalTranscript);
if (finalTranscript) {
props.setUserInput((prevInput) => prevInput + finalTranscript);
}
if (config.sttConfig.engine !== DEFAULT_STT_ENGINE)
setIsTranscription(false);
};
Expand Down

0 comments on commit b5a5558

Please sign in to comment.