mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
最后修复语音输入残留文字的bug
This commit is contained in:
@@ -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 ?? ""}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user