Open xinlonzh opened 3 months ago
我也遇到了同样问题 0.91版,win10 wsl2 ubuntu2204源码部署 用NginxProxyManager代理,远程通过域名+端口访问,访问与合成均正常,但无法下载。 点击显示API调用,发现原因是生成的下载url缺少了端口号,复制url手动补齐端口号便能下载。 小白一个,不知道是不是要在后端配置nginx参数才能搭配NginxProxyManager从外部访问?
尝试用GPT改了app.py中的以下url部分代码,手动设置端口号,我的问题解决了
audio_files.append({ "filename": WAVS_DIR + '/' + filename, "url": f"http://{request.host}/static/wavs/{filename}", "inference_time": inference_time_rounded, "audio_duration": audio_duration_rounded })
改成
port = 55555 # 确保这是你实际使用的端口号 audio_files.append({ "filename": WAVS_DIR + '/' + filename, "url": f"https://{request.host}:{port}/static/wavs/{filename}", "inference_time": inference_time_rounded, "audio_duration": audio_duration_rounded })
修改 nginx配置
location /static {
alias ChatTTS-ui实际部署目录/static;
}
Windows端部署,本机及内网均可正常使用,想放公网使用,使用NginxProxyManager配置代理,web页面正常访问,转发后测试一个推理时长150秒音频时长22秒的测试音频,点击立即合成声音,Windows端开始正常合成处理,大约几时秒后,web端报“发生错误:”,是不是NginxProxyManager中还需要配置nginx相关代理参数。 0.86版本成功合成,但无法下载 升级到0.88,合成阶段,报弹窗“发生错误:”