Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
whyliam committed Aug 13, 2023
1 parent acafbd8 commit e454e41
Show file tree
Hide file tree
Showing 77 changed files with 280 additions and 14,321 deletions.
Binary file added Introduction/SCR-20230813-nhkq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Introduction/SCR-20230813-nkzc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Introduction/SCR-20230813-nmcj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Introduction/SCR-20230813-nngy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions Introduction/有道翻译.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 有道翻译

> 注意
>
> 本文信息可能会过时,仅供参考,请以服务商最新官方文档为准。
>
> 官方文档:[https://ai.youdao.com/doc.s#guide在新窗口打开](https://ai.youdao.com/doc.s#guide)
## [#](https://bobtranslate.com/service/translate/youdao.html#_0-收费模式)0. 收费模式

[查看详情在新窗口打开](https://ai.youdao.com/DOCSIRMA/html/自然语言翻译/产品定价/文本翻译服务/文本翻译服务-产品定价.html)

| 服务 | 免费额度 | 超出免费额度 | 并发请求数 |
| :--------------- | :------- | :-------------- | :--------- |
| 中文与语种一互译 || 48元/100万字符 | - |
| 中文与语种二互译 || 100元/100万字符 | - |
| 其他语种间互译 || 100元/100万字符 | - |

> 提示
>
> 新注册用户领100元体验金
>
> 新用户注册即免费获得10元体验金,实名认证通过再获得40元体验金,添加客服微信再得50元体验金!
## [#](https://bobtranslate.com/service/translate/youdao.html#_1-注册登录)1. 注册登录

[点击此处跳转网页在新窗口打开](https://ai.youdao.com/)

![youdao_translate_login](https://cdn.ripperhe.com/oss/master/2020/0428/youdao_translate_login.png)

> 注册完成后,按照页面提示添加有道客服微信并发送账号信息,可再获得50元体验金。
## [#](https://bobtranslate.com/service/translate/youdao.html#_2-创建应用)2. 创建应用

登录完成后,进入 [「业务指南-应用总览」在新窗口打开](https://ai.youdao.com/console/#/app-overview),点击「创建应用」

![youdao_translate_app_1](https://cdn.wwang.de/w/image/bob/202205032017733.webp)

应用名称随意填写,服务需勾选「文本翻译」,并按需勾选「语音合成」,接入方式选「API」,应用类别可随意选择,其他信息不用填,然后点击「确定」

在翻译单词时,有道翻译可以为单词提供额外的美音和英音发音。如希望使用有道提供的发音功能,此处需同时勾选「语音合成」。语音合成是收费服务,会单独按发音使用量计费,详见 [「智能语音合成服务-产品定价」在新窗口打开](https://ai.youdao.com/DOCSIRMA/html/语音合成TTS/产品定价/语音合成服务/语音合成服务-产品定价.html)

![youdao_translate_app_2](./SCR-20230813-nhkq.png)

> 注意
>
> 请不要填写「服务器 IP」这一项设定,填写后很可能会导致你无法正常访问服务。
## [#](https://bobtranslate.com/service/translate/youdao.html#_3-获取秘钥)3. 获取秘钥

> 警告
>
> **前面的步骤,只要没明确说可以跳过,那就是不能跳过的,不然获取到秘钥也用不了!**
此外,请妥善保管自己的秘钥,秘钥泄露可能会给你带来损失!

进入 [「业务指南-业务总览」在新窗口打开](https://ai.youdao.com/console/#/),在「我的应用」中找到开通了「文本翻译」服务的应用,点击「应用 ID」和「应用密钥」旁的复制按钮可分别复制所需的应用 ID 和应用密钥

![youdao_translate_secret_1](./SCR-20230813-nkzc.png)



## 4. 填写秘钥

在 Alfred 的 Workflows 中,选中「Youdao」,点击 `Configure Workflow`

![](./SCR-20230813-nmcj.png)

然后将刚才获取到的应用 ID 和应用密钥填写到对应位置即可。

![](./SCR-20230813-nngy.png)



## 5. 错误说明

如果新版本有道智云遇到问题,请参见 [错误代码列表](https://ai.youdao.com/DOCSIRMA/html/trans/api/wbfy/index.html#section-14)
26 changes: 4 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# whyliam.workflows.youdao

## 有道翻译 workflow v3.0.0
## 有道翻译 workflow v3.1.0

默认快捷键 `yd`,查看翻译结果。

Expand All @@ -24,31 +24,13 @@

### 下载

#### Python 3 版本
[Python 3 版本](https://github.com/whyliam/whyliam.workflows.youdao/releases/download/3.1.0/whyliam.workflows.youdao.alfredworkflow) - 感谢 [Pid](https://github.com/zhugexiaobo)

[Python 3 版本](https://github.com/whyliam/whyliam.workflows.youdao/releases/download/3.0.0/whyliam.workflows.youdao.alfredworkflow) - 感谢 [Pid](https://github.com/zhugexiaobo)
### 使用说明

#### Python 2 版本
`macOS 12.3` 以下的用户请使用以下版本
[使用说明](Introduction/有道翻译.md)

[Python 2 版本](https://github.com/whyliam/whyliam.workflows.youdao/releases/download/2.2.5/whyliam.workflows.youdao.alfredworkflow)

### 安装

1\. [下载](https://github.com/whyliam/whyliam.workflows.youdao/releases)最新版本双击安装

2\. [注册](http://ai.youdao.com/appmgr.s)有道智云应用

3\. 在 Alfred 的设置中填入对应的`应用ID``应用密钥`

![](https://tva1.sinaimg.cn/large/006tNbRwly1g9oapg37t0j31am0sgjxr.jpg)

4\. 在 Alfred 的设置中设置快捷方式键
![](http://ww2.sinaimg.cn/large/006tNbRwgy1feno6pzaxdj31a60p0jsl.jpg)

### 问题

如果新版本有道智云遇到问题,请参见 [错误代码列表](http://ai.youdao.com/docs/doc-trans-api.s#p08)

### 演示

Expand Down
115 changes: 74 additions & 41 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,14 @@
<dict>
<key>browser</key>
<string></string>
<key>skipqueryencode</key>
<false/>
<key>skipvarencode</key>
<false/>
<key>spaces</key>
<string></string>
<key>url</key>
<string>http://dict.youdao.com/search?q={query}</string>
<key>utf8</key>
<true/>
<string>https://dict.youdao.com/result?word={query}&amp;lang=en&amp;keyfrom=whyliam.workflows.youdao</string>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
Expand Down Expand Up @@ -399,7 +401,7 @@
</dict>
</array>
<key>readme</key>
<string>有道翻译 Workflow v3.0.0
<string>有道翻译 Workflow v3.1.0
默认快捷键 yd, 查看翻译结果。
Expand All @@ -426,113 +428,144 @@
<key>0907BEF4-816F-48FF-B157-03F5C2AACEAB</key>
<dict>
<key>xpos</key>
<integer>830</integer>
<real>830</real>
<key>ypos</key>
<integer>420</integer>
<real>420</real>
</dict>
<key>27E60581-8105-41DD-8E29-4FE811179098</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<real>500</real>
<key>ypos</key>
<integer>290</integer>
<real>290</real>
</dict>
<key>4473C9D3-7A15-4D31-84F6-A096A7CFF46C</key>
<dict>
<key>xpos</key>
<integer>830</integer>
<real>830</real>
<key>ypos</key>
<integer>150</integer>
<real>150</real>
</dict>
<key>5751065C-52C1-4D19-8F7D-03B730BFE440</key>
<dict>
<key>note</key>
<string>双击设置快捷方式</string>
<key>xpos</key>
<integer>270</integer>
<real>270</real>
<key>ypos</key>
<integer>440</integer>
<real>440</real>
</dict>
<key>6A03FDC5-89AC-4F9D-9456-3762ACA751FE</key>
<dict>
<key>xpos</key>
<integer>830</integer>
<real>830</real>
<key>ypos</key>
<integer>40</integer>
<real>40</real>
</dict>
<key>7C1ABC41-3B36-401F-96C7-30BCB39181FF</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<real>500</real>
<key>ypos</key>
<integer>410</integer>
<real>410</real>
</dict>
<key>7CAE8B02-CE31-4941-AD5F-C36CC84D164B</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<real>500</real>
<key>ypos</key>
<integer>560</integer>
<real>560</real>
</dict>
<key>91C343E7-50D8-4B0D-9034-1C16C20DA8D4</key>
<dict>
<key>xpos</key>
<integer>270</integer>
<real>270</real>
<key>ypos</key>
<integer>250</integer>
<real>250</real>
</dict>
<key>DA8E4597-4B45-4C4C-A8D0-755BD785BD7A</key>
<dict>
<key>xpos</key>
<integer>830</integer>
<real>830</real>
<key>ypos</key>
<integer>560</integer>
<real>560</real>
</dict>
<key>DBA62127-3B78-4B80-B82B-1C6AEC393003</key>
<dict>
<key>xpos</key>
<integer>830</integer>
<real>830</real>
<key>ypos</key>
<integer>290</integer>
<real>290</real>
</dict>
<key>F99C4C55-10F5-4D62-A77D-F27058629B21</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<real>500</real>
<key>ypos</key>
<integer>40</integer>
<real>40</real>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string></string>
<key>placeholder</key>
<string>请输入应用ID</string>
<key>required</key>
<true/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string>应用ID</string>
<key>label</key>
<string>应用ID</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>zhiyun_id</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string></string>
<key>placeholder</key>
<string>请输入应用密钥</string>
<key>required</key>
<true/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string>应用密钥</string>
<key>label</key>
<string>应用密钥</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>zhiyun_key</string>
</dict>
</array>
<key>variables</key>
<dict>
<key>filepath</key>
<string>~/Documents/Alfred-youdao-wordbook.xml</string>
<key>password</key>
<string></string>
<key>sentry</key>
<string>True</string>
<key>username</key>
<string></string>
<key>youdao_key</key>
<string></string>
<key>youdao_keyfrom</key>
<string></string>
<key>zhiyun_id</key>
<string></string>
<key>zhiyun_key</key>
<string></string>
</dict>
<key>variablesdontexport</key>
<array>
<string>youdao_key</string>
<string>username</string>
<string>password</string>
<string>youdao_keyfrom</string>
<string>zhiyun_id</string>
<string>zhiyun_key</string>
</array>
<key>version</key>
<string>3.0.0</string>
<string>3.1.0</string>
<key>webaddress</key>
<string>https://github.com/whyliam/whyliam.workflows.youdao</string>
</dict>
Expand Down
40 changes: 0 additions & 40 deletions sentry_sdk/__init__.py

This file was deleted.

Loading

0 comments on commit e454e41

Please sign in to comment.