Zeroto521 / Wox.Plugin.Youdao

Start to translate between Chinese and English.
http://www.wox.one/plugin/213
2 stars 1 forks source link

add Microsoft Speech Engine (tts) #4

Closed TanCheamy closed 3 years ago

TanCheamy commented 3 years ago

添加微软的合成发音, 不需要跳转页面, 代码修改小, 再安装 pywin32

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 1.95%.

Quality metrics Before After Change
Complexity 6.98 ⭐ 6.61 ⭐ -0.37 👍
Method Length 62.10 🙂 59.27 ⭐ -2.83 👍
Working memory 12.74 😞 12.33 😞 -0.41 👍
Quality 55.29% 🙂 57.24% 🙂 1.95% 👍
Other metrics Before After Change
Lines 182 194 12
Changed files Quality Before Quality After Quality Change
main.py 99.00% ⭐ 92.71% ⭐ -6.29% 👎
youdao/youdao.py 54.41% 🙂 56.21% 🙂 1.80% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
youdao/youdao.py Main.query 12 🙂 266 ⛔ 17 ⛔ 33.02% 😞 Try splitting into smaller methods. Extract out complex expressions
youdao/youdao.py Main.record 2 ⭐ 64 🙂 12 😞 68.65% 🙂 Extract out complex expressions
youdao/youdao.py Main._get_proxies 2 ⭐ 60 ⭐ 10 😞 72.91% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it by mentioning @sourcery-ai in a comment.

TanCheamy commented 3 years ago

不好意, 第一次使用 Pull Requests 一些测试代码提交了, 不知道如何去除, 请多多包涵