████████╗██╗ ██╗██████╗ ██╗███╗ ██╗ ██████╗ ████████╗██████╗ █████╗ ███╗ ██╗███████╗██╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗
╚══██╔══╝╚██╗ ██╔╝██╔══██╗██║████╗ ██║██╔════╝ ╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝██║ ██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║
██║ ╚████╔╝ ██████╔╝██║██╔██╗ ██║██║ ███╗ ██║ ██████╔╝███████║██╔██╗ ██║███████╗██║ ███████║ ██║ ██║██║ ██║██╔██╗ ██║
██║ ╚██╔╝ ██╔═══╝ ██║██║╚██╗██║██║ ██║ ██║ ██╔══██╗██╔══██║██║╚██╗██║╚════██║██║ ██╔══██║ ██║ ██║██║ ██║██║╚██╗██║
██║ ██║ ██║ ██║██║ ╚████║╚██████╔╝ ██║ ██║ ██║██║ ██║██║ ╚████║███████║███████╗██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
- 鼠標(biāo)拖動(dòng)
實(shí)時(shí)打字翻譯-網(wǎng)頁版(推薦).ah2
到Autohotkey.exe
上面 - 或者修改
實(shí)時(shí)打字翻譯-網(wǎng)頁版(推薦).ah2
的文件名為實(shí)時(shí)打字翻譯-網(wǎng)頁版(推薦).ahk
,然后修改Auohotkey.exe
的文件名為實(shí)時(shí)打字翻譯-網(wǎng)頁版(推薦).exe
雙擊實(shí)時(shí)打字翻譯-網(wǎng)頁版(推薦).exe
即可
- 實(shí)時(shí)打字翻譯
- 實(shí)時(shí)語音轉(zhuǎn)文字并翻譯
- LOL 語音轉(zhuǎn)文字輸入
- ALT Y: 打開
- ALT ENTER:發(fā)音
- ENTER: 輸出翻譯文本
- CTRL ENTER: 輸出原始文本
- ESC: 退出
- TAB: 切換另一個(gè)翻譯API
- CTRL F7: 網(wǎng)頁版調(diào)試
- CTRL + C :復(fù)制結(jié)果
- CTRL + ALT + Y :翻譯當(dāng)前粘貼板
- CTRL + V:打開狀態(tài)下,輸入粘貼板內(nèi)容
- ALT + I:語音輸入
- xbutton1: LOL語音輸入觸發(fā)
- xbutton2: LOL語音輸入結(jié)束
目前支持 搜狗、百度、有道
環(huán)境 | 版本 |
---|---|
系統(tǒng) | 需要win10或者安裝 webview2 runtime |
源碼運(yùn)行需要 ahk 版本 | autohotkey v2H |
通過配置文件來配置 /config/setting.json
- 選擇主翻譯API
"cd" : "youdao" ## 目前支持 "baidu", "google"(需要科學(xué)上網(wǎng),且美國節(jié)點(diǎn)), "youdao", "sougou"
備選API需配置 is_open
為 1
如果沒反應(yīng),可能api在維護(hù),可以切換另一個(gè)使用
目前免費(fèi)的是有道和搜狗和谷歌, 有道是直接調(diào)用的api速度比較快,搜狗是爬蟲(速度較慢),谷歌需要翻墻
百度結(jié)果很不錯(cuò),但是需要注冊(免費(fèi)100w字符/月)
- 有道詞典
http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&smartresult=ugc&sessionFrom=null
{
"is_open" : 1
}
https://fanyi.sogou.com/text?keyword=%E4%BD%A0%E5%A5%BD&transfrom=auto&transto=en&model=general
"sougou" :
{
"is_open" : 1,
"is_real_time_translate" : 1
},
- 谷歌
{
"is_open" : 0,
"is_real_time_translate" : 0
}
- 百度翻譯 需要自己注冊后,把key填到配置文件 http://api.fanyi.baidu.com/api/trans/product/index
{
"is_open" : 0,
"BaiduFanyiAPPID" : "xxxxx",
"BaiduFanyiAPPSEC": "xxxxx",
"is_real_time_translate" : 0
}
因?yàn)榘俣仁褂么螖?shù)有限額,因此通過 is_baidu_real_time_translate
來配置是否實(shí)時(shí)觸發(fā)翻譯
當(dāng)配置 0
時(shí),需要輸入 空格
鍵 主動(dòng)翻譯, 建議輸入最后鍵入空格
- 切換
按 tab
鍵,從配置和打開的API切換