: }
text={
speechLoading
? "Loading..."
: speechStatus
? Locale.Chat.Actions.Stop
: Locale.Chat.Actions.Speech
}
onClick={() => {
if (speechStatus) {
ttsPlayer.stop();
setSpeechStatus(false);
} else {
openaiSpeech(
"NextChat,Unleash your imagination, experience the future of AI conversation.",
);
}
}}
/>