BingLingGroup / autosub

Command-line utility to transcribe/translate from video/audio/subtitles to subtitles
GNU General Public License v2.0
1.99k stars 245 forks source link

Wrong API code,错误 #105

Closed lqomg closed 4 years ago

lqomg commented 4 years ago

描述问题 你好,我是用baidu的api执行下列命令出错。 sudo autosub -sapi baidu -sconf config.json -D en -S en -i YouVideo.mp4 Error: Wrong API code. 可是在没有-S en参数的时候可以输出字幕文件,但是文件内容都是 `1 00:00:00,440 --> 00:00:06,430

2 00:00:06,440 --> 00:00:09,890

3 00:00:11,100 --> 00:00:17,090

4 00:00:17,100 --> 00:00:23,090`

期待的行为 可以输出正确的结果

操作环境(请提供以下完整数据):

BingLingGroup commented 4 years ago
  1. 没有指定源语言的话当然只输出时间轴(本地处理的),是正常功能
  2. 只有autosub的dev分支最新版支持baidu api,你可能使用的是alpha版,而且dev分支最新版只支持python 3.5及以上
lqomg commented 4 years ago
  1. 没有指定源语言的话当然只输出时间轴(本地处理的),是正常功能
  2. 只有autosub的dev分支最新版支持baidu api,你可能使用的是alpha版,而且dev分支最新版只支持python 3.5及以上

我试了,python用的3.6版本,使用dev最新版本也安装成功,但是依旧报错 出现以下错误: 微信截图_20200405114632

BingLingGroup commented 4 years ago

错误信息提示升级一下setuptools,那你升级一下,pip install setuptools --upgrade

BingLingGroup commented 4 years ago

太长时间没回复,先关了,关闭后仍可回复

lqomg commented 4 years ago

忘记回复了,已经解决了呢,谢谢

vootshiclone commented 4 years ago

Using 0.5.5-alpha

If I do this: autosub -sapi baidu -i /mnt/e/youtube/1.mp4 -sconf /mnt/e/youtube/config.json -S EN

Getting Error: Wrong API code.

If I do this: autosub -sapi baidu -i /mnt/e/youtube/1.mp4 -sconf /mnt/e/youtube/config.json

Stucks on Auditok and then gives the empty .srt

What am I doing wrong?

vootshiclone commented 4 years ago

Forgot to reply, it has been resolved, thank you

What is the solution?

BingLingGroup commented 4 years ago

Just update to the latest version first. @vootshiclone