# 多引擎翻译在线服务 (DeepL默认可用，共18个引擎)

**URL:** <https://forum.freemdict.com/t/topic/23659>\
**Category:** 技术交流与词典编修\
**Created:** [2023 年9 月 26 日 07:20 UTC](https://forum.freemdict.com/t/topic/23659 "2023-09-26T07:20:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2023 年9 月 26 日 07:20 UTC](https://forum.freemdict.com/t/topic/23659/1 "2023-09-26T07:20:08Z")

</div>

之前参考 [10月20日更新|GoldenDict翻译句子的一种方式|GoldenDict 程序词典使用 - 技术交流与词典编修 - FreeMdict Forum](https://forum.freemdict.com/t/topic/16373/29) 重写一版翻译程序

但是始终存在一些问题, 比如每次启动程序很慢, 且只适用于GoldenDict.

昨天特意完善了, 改为Python Flask服务

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/4/c/4c96347bcd8371b186217d1d51387881bbc86415.png)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/6/1/61b524e3852fd2d5f250c41914c40f8130635d05.png)

代码库地址

[pyutil/translate at master · Leon406/pyutil (github.com)](https://github.com/Leon406/pyutil/tree/master/translate)

如果有服务器资源可以自行部署,个人轻量服务器就不分享了

* * *
2023年9月29日10:36:56 更新

加入第三方免国外信用卡deepl 服务, 默认注册20W token,  
填写referral\_code可以多20W,介意的可以删除后面的referral\_code, 一般来说个人使用基本够用

> **[DeepL翻译API](https://deepl-pro.com/#/translate?referral_code=Bw9Ic9czPM)**
>
> 便宜、稳定、高并发 DeepL API 接口服务，注册免费试用

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年3 月 26 日 13:46 UTC](https://forum.freemdict.com/t/topic/23659/2 "2024-03-26T13:46:10Z")

</div>

- 点击翻译和句子都可以直接复制

- 新增多个翻译引擎 ，现支持17个翻译引擎

- 支持隐藏无效引擎，默认隐藏

PS. 一般响应 3-10s, 默认deepl key额度已用完，自行参照主楼注册

* * *

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/4/0/4097cea321ce74f1e39268d54c089d53ae8fa4f8.png)  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/9/5/950af479791758d5ea377e30947fe7031cbaf144.png)  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/5/6/56f255fc21cc4dfce159e1532aa8506f8bef8cd9.png)

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年3 月 26 日 14:49 UTC](https://forum.freemdict.com/t/topic/23659/3 "2024-03-26T14:49:15Z")

</div>

合并相同翻译

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/f/d/fdc289d22cd737cd0e8492e9f7c0b6f13e85ed55.png)

---

<div class="post-metadata">

作者： ![gttwork](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/g/d07c76/32.png) [@gttwork](https://forum.freemdict.com/u/gttwork)\
发布日期： [2024 年3 月 27 日 00:07 UTC](https://forum.freemdict.com/t/topic/23659/4 "2024-03-27T00:07:11Z")

</div>

请问如何部署？

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年3 月 27 日 00:41 UTC](https://forum.freemdict.com/t/topic/23659/5 "2024-03-27T00:41:18Z")

</div>

python服务， 都是下载源码, 安装相关依赖后执行  
参见README Web服务

已提供封装好的启动，停止，测试的shell

---

<div class="post-metadata">

作者： ![gttwork](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/g/d07c76/32.png) [@gttwork](https://forum.freemdict.com/u/gttwork)\
发布日期： [2024 年3 月 27 日 01:29 UTC](https://forum.freemdict.com/t/topic/23659/6 "2024-03-27T01:29:13Z")

</div>

感谢告知，还是有一定的使用门槛。

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年3 月 27 日 02:36 UTC](https://forum.freemdict.com/t/topic/23659/7 "2024-03-27T02:36:13Z")

</div>

服务器部署，没有服务器的的可以本地运行python代码

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年4 月 6 日 08:59 UTC](https://forum.freemdict.com/t/topic/23659/8 "2024-04-06T08:59:01Z")

</div>

加入deeplx 免费翻译及候选翻译

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/3/3354036ec1eddc28aaad2540b7c6e1a370dec1b6.png)

PS. translators 需要安装 5.9.1+

---

<div class="post-metadata">

作者： ![leon406](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/leon406/32/78518_2.png) [@leon406](https://forum.freemdict.com/u/leon406)\
发布日期： [2024 年4 月 12 日 01:13 UTC](https://forum.freemdict.com/t/topic/23659/9 "2024-04-12T01:13:59Z")

</div>

2024-04-11T16:00:00Z  
修复服务器 500 错误
