mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
最后修复语音输入残留文字的bug
This commit is contained in:
parent
f05e4a8896
commit
3368e88d16
@ -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 ?? ""}`,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user