remove redundancy code

This commit is contained in:
dakai 2024-10-16 11:34:20 +08:00
parent 67192a7946
commit ab4bf3ba67
1 changed files with 3 additions and 8 deletions

View File

@ -140,14 +140,9 @@ export function TTSConfigList(props: {
: Locale.Chat.Actions.Speech : Locale.Chat.Actions.Speech
} }
onClick={() => { onClick={() => {
if (speechStatus) { openaiSpeech(
ttsPlayer.stop(); "NextChat,Unleash your imagination, experience the future of AI conversation.",
setSpeechStatus(false); );
} else {
openaiSpeech(
"NextChat,Unleash your imagination, experience the future of AI conversation.",
);
}
}} }}
/> />