各厂家翻译服务相关说明
微软翻译
https://docs.azure.cn/zh-cn/cognitive-services/translator/translator-text-how-to-signup
百度翻译
https://api.fanyi.baidu.com/api/trans/product/apiaccess?form=1
http://api.fanyi.baidu.com/api/trans/product/apidoc#languageList
query长度:为保证翻译质量,请将单次请求长度控制在 6000 bytes以内。(汉字约为2000个)
对于标准版服务,您的QPS(每秒请求量)=1,如需更大频率,请先进行身份认证,认证通过后可切换为高级版(适用于个人,QPS=10)或尊享版(适用于企业,QPS=100)
有道翻譯
http://fanyi.youdao.com/openapi?path=data-mode
q - 要翻译的文本,必须是UTF-8编码,字符长度不能超过200个字符,需要进行urlencode编码
google翻译
开通服务:https://console.cloud.google.com/apis/library/translate.googleapis.com?project=search-281910&flow=gcp
String url = "https://translation.googleapis.com/language/translate/v2";
Map<String,Object> params = new HashMap<>();
params.put("target", "zh");
params.put("key", key);
params.put("q",query);
String post = HttpUtil.post(url, params);
搜狗翻译
https://deepi.sogou.com/registered/texttranslate
PID: 76ac826880427a93dee4d1560644a4f7
Key: 1fe67da43a05c8d1430cd0d000dd169a
常见语种
(中外) 英语、日语、韩语、法语、德语等20种语言(常见语种列表) 40元/百万字符
非常见语种
(中外,外外) 挪威语、希腊语、印地语等40种语言(非常见语种列表) 60元/百万字符