diff --git a/README.md b/README.md index e51917e2..6d04c14f 100644 --- a/README.md +++ b/README.md @@ -727,7 +727,7 @@ when the option is not given at the command line. "(arg_num)" means if the option is given, the number of the arguments is required. Author: Bing Ling -Email: agermanidis@gmail.com +Email: binglinggroup@outlook.com Bug report: https://github.com/BingLingGroup/autosub ``` @@ -790,7 +790,7 @@ Bugs and suggestions can be reported at [issues](https://github.com/BingLingGrou I only write the scripts for building standalone executable files on windows, [Nuitka script](scripts/nuitka_build.bat) and [pyinstaller script](scripts/pyinstaller_build.bat). -The version after 0.5.4a doesn't support Nuitka build since 0.5.4a import google.cloud package and it contains `pkg_resources.get_distribution` which is not supported by Nuitka due to this [Nuitka issue #146](https://github.com/Nuitka/Nuitka/issues/146). You can manually remove the codes include the google.cloud package and build it. I will consider remove the codes to support Nuitka build in the future version. +The version after 0.5.4a doesn't support Nuitka build since 0.5.4a import google.cloud package and it contains `pkg_resources.get_distribution` which is not supported by Nuitka due to this [Nuitka issue #146](https://github.com/Nuitka/Nuitka/issues/146). You can manually remove the codes include the google.cloud package and build it. I will consider removing the codes to support Nuitka build in the future version. Nuitka build is pretty tricky. These environments I tried and worked. diff --git a/autosub/cmdline_utils.py b/autosub/cmdline_utils.py index 96dcc3c8..c2f3baf6 100644 --- a/autosub/cmdline_utils.py +++ b/autosub/cmdline_utils.py @@ -252,7 +252,7 @@ def validate_aovp_args(args): # pylint: disable=too-many-branches, too-many-ret Check that the commandline arguments passed to autosub are valid for audio or video processing. """ - if args.sleep_seconds < 0 or args.lines_per_trans < 0: + if args.sleep_seconds < 0: raise exceptions.AutosubException( _("Error: \"-slp\"/\"--sleep-seconds\" arg is illegal.")) diff --git a/autosub/constants.py b/autosub/constants.py index b5b51fdf..91238dfb 100644 --- a/autosub/constants.py +++ b/autosub/constants.py @@ -63,7 +63,6 @@ # when using external speech region control DEFAULT_DST_LANGUAGE = 'en-US' -DEFAULT_LINES_PER_TRANS = 15 DEFAULT_SIZE_PER_TRANS = 4000 DEFAULT_SLEEP_SECONDS = 5 diff --git a/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo b/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo index b67d057d..08c8b4db 100644 Binary files a/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo and b/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo differ diff --git a/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po b/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po index 458bdaef..166c9d8c 100644 --- a/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po +++ b/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-02-02 11:17+0800\n" -"PO-Revision-Date: 2020-02-02 11:19+0800\n" +"POT-Creation-Date: 2020-02-02 16:25+0800\n" +"PO-Revision-Date: 2020-02-02 16:25+0800\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -620,8 +620,8 @@ msgstr "" #: autosub/options.py:554 msgid "" "List all recommended \"-S\"/\"--speech-language\" Google Speech-to-Text " -"language codes. If no arg is given, list all. Or else will list get a group " -"of \"good match\" of the arg. Default \"good match\" standard is whose match " +"language codes. If no arg is given, list all. Or else will list a group of " +"\"good match\" of the arg. Default \"good match\" standard is whose match " "score above 90 (score between 0 and 100). Ref: https://tools.ietf.org/html/" "bcp47 https://github.com/LuminosoInsight/langcodes/blob/master/langcodes/" "__init__.py lang code example: language-script-region-variant-extension-" @@ -638,8 +638,8 @@ msgstr "" #: autosub/options.py:570 msgid "" "List all available \"-SRC\"/\"--src-language\" py-googletrans translation " -"language codes. Or else will list get a group of \"good match\" of the arg. " -"Same docs above. (arg_num = 0 or 1)" +"language codes. Or else will list a group of \"good match\" of the arg. Same " +"docs above. (arg_num = 0 or 1)" msgstr "" "列出所有可用的\"-SRC\"/\"--src-language\"也就是py-googletrans可用的翻译用的语" "言代码。否则会给出一个“好的匹配”的清单。同样的参考文档如上。(参数个数为0或" diff --git a/autosub/options.py b/autosub/options.py index 56b8ee6f..eed84102 100644 --- a/autosub/options.py +++ b/autosub/options.py @@ -554,7 +554,7 @@ def get_cmd_args(): # pylint: disable=too-many-statements help=_("List all recommended \"-S\"/\"--speech-language\" " "Google Speech-to-Text language codes. " "If no arg is given, list all. " - "Or else will list get a group of \"good match\" " + "Or else will list a group of \"good match\" " "of the arg. Default \"good match\" standard is whose " "match score above 90 (score between 0 and 100). " "Ref: https://tools.ietf.org/html/bcp47 " @@ -569,7 +569,7 @@ def get_cmd_args(): # pylint: disable=too-many-statements nargs='?', help=_("List all available \"-SRC\"/\"--src-language\" " "py-googletrans translation language codes. " - "Or else will list get a group of \"good match\" " + "Or else will list a group of \"good match\" " "of the arg. " "Same docs above. " "(arg_num = 0 or 1)")) diff --git a/docs/README.zh-Hans.md b/docs/README.zh-Hans.md index 724ae56e..62714a45 100644 --- a/docs/README.zh-Hans.md +++ b/docs/README.zh-Hans.md @@ -654,7 +654,7 @@ Auditok的选项: "参数个数"指的是如果提供了选项, 该选项所需要的参数个数。 作者: Bing Ling -Email: agermanidis@gmail.com +Email: binglinggroup@outlook.com 问题反馈: https://github.com/agermanidis/autosub ```