mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
remove redundancy code
This commit is contained in:
@@ -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.",
|
||||
);
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user