-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代理问题 #186
Comments
我看之前 说安装googletrans4.0.0rc1s ,最新分支应该是配了这个的,但还是报错,这个是不是因为googletans的免费API不能用了 需要设置自己的googletrans api呢 |
还是说谷歌翻译只能使用http代理 即使像ssr ss这种能正常使用googlespeech的也不行 |
但是我看readme提到可以使用SS |
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
翻译报错问题也解决了,目前可以确认的是最新DEV语音识别和googletrans都没有问题,导致上述问题出现有三个原因,一是没有使用正确的代理方式,二是缺少相应的python环境 三是autosub缺少参数 |
使用代理的方法请查看help信息中 |
解决了,我用sstap挂了全局代理就好了 V2RAYN和clash都不能解决这个问题 我用终端命令也是这样 测试能访问谷歌,但是无法识别。翻译现在是报这种错误
autosub -S ja-jp -i "C:\Users\Administrator\Downloads\LANREN\LANREN.mp4" -D zh-cn
然后语音识别100%后报这个
语音转文字中: 100% |#########################################################################################| Time: 0:01:28
Traceback (most recent call last):
File "C:\Python39\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python39\Scripts\autosub.exe_main.py", line 7, in
File "C:\Python39\lib\site-packages\autosub_init.py", line 166, in main
cmdline_utils.audio_or_video_prcs(args,
File "C:\Python39\lib\site-packages\autosub\cmdline_utils.py", line 1614, in audio_or_video_prcs
translated_text, args.src_language = core.list_to_googletrans(
File "C:\Python39\lib\site-packages\autosub\core.py", line 772, in list_to_googletrans
result_src = translator.detect(content_to_trans).lang
File "C:\Python39\lib\site-packages\googletrans\client.py", line 369, in detect
translated = self.translate(text, src='auto', dest='en')
File "C:\Python39\lib\site-packages\googletrans\client.py", line 219, in translate
parsed = json.loads(data[0][2])
File "C:\Python39\lib\json_init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
还是跟以前提到的issues
Originally posted by @ainy0315 in #185 (comment)
The text was updated successfully, but these errors were encountered: