mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-24 04:06:39 +08:00
remove redundancy code
This commit is contained in:
parent
67192a7946
commit
ab4bf3ba67
@ -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.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user