+ {/* 语音输入:仅在平台支持时出现(见 useVoiceCapture);模型未下载时保留按钮、点击给指引 */}
+ {voice.status && (voice.status.available || voice.status.reason === 'asset') && (
+ <>
+ {voice.state === 'recording' && (
+
+
+ {/* 电平表:RMS 放大后限 0–1(语音一般只到 0.2 左右) */}
+
+
+
+
+ )}
+
+ >
+ )}
{/* 上传查询图(网页版的以图搜图入口;桌面用拖入 / 粘贴 / 右键) */}
{onPickImage && !image && (
+
+ {/* 语音输入的错误 / 指引(权限、模型未下载等):点击关闭,10s 自动消失(见上面的 useEffect) */}
+ {voice.notice && (
+