This commit is contained in:
zjt 2024-06-24 18:56:05 +08:00
parent 8ebada79e9
commit 66e5b4c9f2

View File

@ -10,7 +10,7 @@ const useTxt2Voice = () => {
utterance.pitch = 1; utterance.pitch = 1;
utterance.text = text; utterance.text = text;
//@ts-ignore //@ts-ignore
synthesizer.speak(utterance); synthesizer && synthesizer.speak(utterance);
} }
const stop = () => { const stop = () => {
//@ts-ignore //@ts-ignore