jianchang512 / stt

Voice Recognition to Text Tool / 一个离线运行的本地音视频转字幕工具,输出json、srt字幕、纯文字格式

Home Page:https://pyvideotrans.com

Repository from Github https://github.comjianchang512/sttRepository from Github https://github.comjianchang512/stt

调用API时,视频一直上传失败

xeroqin opened this issue · comments

在使用start.py运行项目时可以正常上传视频并生成字幕,但是在使用API时总是无法上传视频,并报错“Expectiec value: line 1 column 1 (char 0)”
mmexport1729094028950

那是你代码问题 ask_api.py 里什么什么,代码错误

image
可是使用源码中的test.py代码也是无法上传
image

print(response.text) 看看输出什么

确定已启动了 http://127.0.0.19977

输出Relay failed to 127.0.0.1:9977
image

浏览器中打开 http://127.0.0.1:9977 先确认启动了 start.exe

现在可以正常使用了,感谢作者!还有一部分原因是我电脑防火墙的设置问题