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