最后修复语音输入残留文字的bug

This commit is contained in:
sijinhui 2024-03-29 08:52:06 +08:00
parent f05e4a8896
commit 3368e88d16

View File

@ -133,14 +133,6 @@ export default function VoiceInput({
recognizer.current.recognizeOnceAsync(
(result) => {
onRecognizedResult(result);
console.log(
"1",
tempUserInput,
"2",
voiceInputText ?? "",
"3",
`${result.text ?? ""}`,
);
setUserInput(
tempUserInput + (voiceInputText ?? "") + `${result.text ?? ""}`,
);