mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
最后修复语音输入残留文字的bug
This commit is contained in:
@@ -133,14 +133,6 @@ export default function VoiceInput({
|
|||||||
recognizer.current.recognizeOnceAsync(
|
recognizer.current.recognizeOnceAsync(
|
||||||
(result) => {
|
(result) => {
|
||||||
onRecognizedResult(result);
|
onRecognizedResult(result);
|
||||||
console.log(
|
|
||||||
"1",
|
|
||||||
tempUserInput,
|
|
||||||
"2",
|
|
||||||
voiceInputText ?? "",
|
|
||||||
"3",
|
|
||||||
`${result.text ?? ""}`,
|
|
||||||
);
|
|
||||||
setUserInput(
|
setUserInput(
|
||||||
tempUserInput + (voiceInputText ?? "") + `${result.text ?? ""}`,
|
tempUserInput + (voiceInputText ?? "") + `${result.text ?? ""}`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user