-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I'm calling the speak function on onEnd function from useSpeechRecognition like this
const onEnd = () => {
fetch(
"http://api/Main?id=test&lang=kor&req=" +
value,
{}
)
.then((res) => res.json())
.then(
(result) => {
setResponse(result.res);
speak({
text: result.res,
voices: {
lang: "ko-KR",
},
});
console.log(result);
},
(error) => {
console.log(error);
}
);
};
but the voice language doesn't changed to korean, also it speak continously. where did i do wrong?
Metadata
Metadata
Assignees
Labels
No labels