error
This commit is contained in:
parent
8ebada79e9
commit
66e5b4c9f2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user