sxzxs / Real-time-translation-typing

实时打字翻译软件、语音实时打字、语音实时翻译、LOL 语音打字
989 stars 90 forks source link

添加长效开关 #2

Open xiaoxinshiwo opened 10 months ago

xiaoxinshiwo commented 10 months ago

首先感谢能够开源这么棒的软件👍 First of all thank you can source this great software.

能不能增加一个长效开关,不用每输一句话就按一次Alt+Y激活? Can increase a long-acting switch, need not every input sentence and then press Alt Y activation?

PS: 上面的英语是这个软件翻译的,能够看到翻译的不是那么多的准确,能否提供更改翻译源的功能?

sxzxs commented 10 months ago

我研究下其他api,目前是有道的

xiaoxinshiwo commented 10 months ago

可否增加google translate?

sxzxs commented 10 months ago

可否增加google translate?

查了一下,google之前的api不能访问了,应该比较难

sxzxs commented 10 months ago

已找到api接口,得科学上网

sxzxs commented 10 months ago

可否增加google translate?

已添加

xiaoxinshiwo commented 10 months ago

image 已科学,但是google translate不可用,配置如下: { "cd" : "google", "all_api" : ["baidu", "youdao", "google"], "youdao": { "is_open" : 0 }, "baidu" : { "is_open" : 0, "BaiduFanyiAPPID" : "", "BaiduFanyiAPPSEC": "", "is_real_time_translate" : 0 }, "google": { "is_open" : 1, "is_real_time_translate" : 0 } } 现象: image 点击enter第一次返回【google】后面是空白

sxzxs commented 10 months ago

看看 https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=en&tl=zh-CN&dj=1&ie=UTF-8&oe=UTF-8&q=send 访问这个链接会下载json文件,api就是调用的这个

huhexian commented 10 months ago

我也建议添加长效开关。

xiaoxinshiwo commented 10 months ago

看看 https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=en&tl=zh-CN&dj=1&ie=UTF-8&oe=UTF-8&q=send 访问这个链接会下载json文件,api就是调用的这个

{"sentences":[{"trans":"发送","orig":"send","backend":10}],"src":"en","spell":{}}

sxzxs commented 10 months ago

有输入空格吗,因为配置的 is_real_time_translate, 需要空格触发

xiaoxinshiwo commented 10 months ago

is_real_time_translate

可以了,但是可以不用空格触发吗

sxzxs commented 10 months ago

好像有bug,正常is_real_time_translate配置1就可以

xiaoxinshiwo commented 10 months ago

好像有bug,正常is_real_time_translate配置1就可以

嗯嗯,我配置成了1还是要空格触发,麻烦再修复下,很棒的软件👍

xiaoxinshiwo commented 10 months ago

我也建议添加长效开关。

麻烦作者也考虑下这个建议

sxzxs commented 10 months ago

我也建议添加长效开关。

麻烦作者也考虑下这个建议

好的

sxzxs commented 10 months ago

is_real_time_translate

可以了,但是可以不用空格触发吗

提交了

xiaoxinshiwo commented 10 months ago

is_real_time_translate

可以了,但是可以不用空格触发吗

提交了

Perfect

StarDJJ commented 10 months ago

长效开关是咋用的呀

xiaoxinshiwo commented 10 months ago

长效开关是咋用的呀

开关开启,在持续的英语环境中不用每次点击快捷键Alt + Y才触发翻译面板,目前还没实现呢

sxzxs commented 10 months ago

长效开关是指, alt + y调用软件后,enter键输入到文本,接下来 输入字母,继续执行翻译吗?

xiaoxinshiwo commented 10 months ago

长效开关是指, alt + y调用软件后,enter键输入到文本,接下来 输入字母,继续执行翻译吗?

就是可以不用每次alt + y调用软件,就是适配连续英语输入环境

Dualhearts commented 1 month ago

是啊,不要翻译上屏后,又要alt+Y,太麻烦了。有一个长效的开关键就好了,退出就再按一下这个键,否则就一直处于实时打字翻译状态。