lobehub/lobe-chat

[Bug] 使用`browser`作为语音识别服务时出现白屏 #1660

cy948 posted onGitHub

💻 系统环境

Windows

📦 部署环境

Official Preview

🌐 浏览器

Edge

🐛 问题描述

使用browser作为语音识别服务时出现白屏 image

🚦 期望结果

不白屏

📷 复现步骤

  • 进入/settings/tts
  • 语音识别服务选择 Browser
  • 通过左侧导航栏图标返回 /chat 再刷新页面,或通过地址栏直接进入 /chat

📝 补充信息

image


👀 @cy948

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot 12 months ago

相关问题:

主要原因是 @canisminor1990 之前实现不规范导致的:https://github.com/lobehub/lobe-chat/blob/43e544a3549aff9a691e3740ed8614ec13c32a29/src/hooks/useSTT.ts#L36-L61

上述写法违反 react hooks 规范了,但我一直没时间改,如果有兴趣的话欢迎来个 PR?

posted by arvinxx 12 months ago

@arvinxx 好的,我先研究一下代码

posted by cy948 12 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@arvinxx Okay, let me study the code first

posted by lobehubbot 12 months ago

✅ @cy948

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

posted by lobehubbot 12 months ago

Fund this Issue

$0.00
Funded

Pull requests