Closed winter2399 closed 4 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] Speech to text prompt error
确认一下你的网站是否开启了 https 访问。
Bot detected the issue body's language is not English, translate it automatically.
Make sure your website has https access enabled.
确认一下你的网站是否开启了 https 访问。
开了https
location / {
proxy_pass http://10.170.0.2:9133;
proxy_http_version 1.1;
# 不缓存,支持流式输出
proxy_cache off; # 关闭缓存
proxy_buffering off; # 关闭代理缓冲
chunked_transfer_encoding on; # 开启分块传输编码
tcp_nopush on; # 开启TCP NOPUSH选项,禁止Nagle算法
tcp_nodelay on; # 开启TCP NODELAY选项,禁止延迟ACK算法
keepalive_timeout 300; # 设定keep-alive超时时间为300秒
# CORS 配置
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
# 处理 OPTIONS 请求
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
}
我的语言转文本功能也不能使用, 不知道为啥, 没有配置相关的环境变量, 不知道是否需要. 报错[HTTP/2 503 Service Unavailable 515ms], 应该是选择的WebAPI和OpenAI都是这个错.
Bot detected the issue body's language is not English, translate it automatically.
My language-to-text function cannot be used. I don’t know why. I haven’t configured the relevant environment variables. I don’t know if it is needed. The error [HTTP/2 503 Service Unavailable 515ms] is reported. It should be that the selected WebAPI and OpenAI are both wrong.
接口中是否有具体的报错信息?可否发下接口返回的原始数据。
Bot detected the issue body's language is not English, translate it automatically.
Is there any specific error message in the interface? Can you send the original data returned by the interface?
接口中是否有具体的报错信息?可否发下接口返回的原始数据。
怎么查看接口报错信息
Bot detected the issue body's language is not English, translate it automatically.
Is there any specific error message in the interface? Can you send the original data returned by the interface?
How to check interface error information
F12 打开浏览器开发者工具 然后切到网络选项卡 里面有标红的接口 点击后看里面具体的返回值
Bot detected the issue body's language is not English, translate it automatically.
F12 Open the browser developer tools and then switch to the Network tab. There is an interface marked in red. Click it to see the specific return value.
F12 打开浏览器开发者工具 然后切到网络选项卡 里面有标红的接口 点击后看里面具体的返回值
没有网络请求,单纯的控制台报错
Bot detected the issue body's language is not English, translate it automatically.
F12 to open the browser developer tools and then switch to the Network tab. There is an interface marked in red. Click to see the specific return value.
There is no network request, and the console simply reports an error.
试一下演示环境是否正常 https://n3xt.chat
Bot detected the issue body's language is not English, translate it automatically.
Try to see if the demo environment is normal https://n3xt.chat
试一下演示环境是否正常 https://n3xt.chat
一样的问题,webapi 没问题,whisper 控制台报错,不发送网络请求。edge 和谷歌浏览器都是这个错误。 edge报错 谷歌浏览器报错
浏览器版本
系统是win10 2021 ltsc
Bot detected the issue body's language is not English, translate it automatically.
Try whether the demo environment is normal https://n3xt.chat
The same problem, the webapi is fine, but the whisper console reports an error and does not send network requests.
你开一个隐身窗口试试,我同样版本的edge无法复现这个问题。
Bot detected the issue body's language is not English, translate it automatically.
You can try opening an incognito window. I can't reproduce this problem with the same version of Edge.
你开一个隐身窗口试试,我同样版本的edge无法复现这个问题。
找到问题了。这个错误真的太迷惑了。谢谢大佬耐心解答 https://blog.csdn.net/qq_41000974/article/details/121306408
Bot detected the issue body's language is not English, translate it automatically.
Try opening an incognito window. I can't reproduce this problem with the same version of edge.
Found the problem. This error is really confusing. Thank you for your patience, sir. https://blog.csdn.net/qq_41000974/article/details/121306408
你开一个隐身窗口试试,我同样版本的edge无法复现这个问题。
谢谢大佬,非常感谢。这个在win10 2021 ltsc设置默认关闭。错误奇奇怪怪。既然设置默认关闭,为什么webapi可以跳过这个权限
Bot detected the issue body's language is not English, translate it automatically.
Try opening an incognito window. I can't reproduce this problem with the same version of edge.
Thank you sir, thank you very much. This is turned off by default in win10 ltsc settings. Weird error
你开一个隐身窗口试试,我同样版本的edge无法复现这个问题。
谢谢大佬,非常感谢。这个在win10 2021 ltsc设置默认关闭。错误奇奇怪怪。既然设置默认关闭,为什么webapi可以跳过这个权限
webapi 是直接调用的浏览器提供的语音识别 api,可能浏览器底层申请逻辑不一样吧,具体也不是很清楚,第一次见你这个文章里说的开关。
Bot detected the issue body's language is not English, translate it automatically.
Try opening an incognito window. I can't reproduce this problem with the same version of edge.
Thank you sir, thank you very much. This is turned off by default in win10 2021 ltsc settings. The error is weird. Since the setting is turned off by default, why can webapi skip this permission?
Webapi is the speech recognition API provided by the browser that is directly called. Maybe the underlying application logic of the browser is different. The details are not very clear. This is the first time I see the switch mentioned in your article.
Bug Description
使用 whisper 会报错,使用 WebAPI 不会报这个错误。
求大佬解答,是因为使用的 one-api 吗?
Steps to Reproduce
Expected Behavior
可以使用语音转文本的 whisper 功能。
Screenshots
No response
Deployment Method
Desktop OS
win10
Desktop Browser
edge 和 谷歌浏览器
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response