Skip to content

Commit

Permalink
remove redundancy code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakai committed Oct 16, 2024
1 parent 67192a7 commit ab4bf3b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions app/components/tts-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,9 @@ export function TTSConfigList(props: {
: Locale.Chat.Actions.Speech
}
onClick={() => {
if (speechStatus) {
ttsPlayer.stop();
setSpeechStatus(false);
} else {
openaiSpeech(
"NextChat,Unleash your imagination, experience the future of AI conversation.",
);
}
openaiSpeech(
"NextChat,Unleash your imagination, experience the future of AI conversation.",
);
}}
/>

Expand Down

0 comments on commit ab4bf3b

Please sign in to comment.