admin管理员组文章数量:1532440
[免费翻译接口](https://wwwblogs/fanyang1/p/9414088.html)
## **google**
```
http://translate.google/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=zh_TW&q=calculate
```
返回结果:
```
{
"sentences": [
{
"trans": "計算",
"orig": "calculate",
"backend": 1
}
],
"src": "en",
"confidence": 0.9609375,
"ld_result": {
"srclangs": [
"en"
],
"srclangs_confidences": [
0.9609375
],
"extended_srclangs": [
"en"
]
}
}
```
## **Youdao**
http://fanyi.youdao/translate?&doctype=json&type=AUTO&i=world ! I Love You
```
{
"type": "EN2ZH_CN",
"errorCode": 0,
"elapsedTime": 11,
"translateResult": [
[
{
"src": "world ! ",
"tgt": "世界!"
},
{
"src": "I Love You",
"tgt": "我爱你"
}
]
]
}
```
type的类型有:
>ZH_CN2EN 中文 » 英语
ZH_CN2JA 中文 » 日语
ZH_CN2KR 中文 » 韩语
ZH_CN2FR 中文 » 法语
ZH_CN2RU 中文 » 俄语
ZH_CN2SP 中文 » 西语
EN2ZH_CN 英语 » 中文
JA2ZH_CN 日语 » 中文
KR2ZH_CN 韩语 » 中文
FR2ZH_CN 法语 » 中文
RU2ZH_CN 俄语 » 中文
SP2ZH_CN 西语 » 中文
## **Bing**
```
http://api.microsofttranslator/v2/Http.svc/Translate?appId=AFC76A66CF4F434ED080D245C30CF1E71C22959C&from=&to=en&text=考勤计算
```
返回结果:
~~~
Attendance calculation
~~~
## **Baidu**
```
http://fanyi.baidu/transapi?from=auto&to=cht&query=Calculation
```
返回结果:
```
{
"from": "en",
"to": "cht",
"domain": "all",
"type": 2,
"status": 0,
"data": [
{
"dst": "計算",
"prefixWrap": 0,
"src": "Calculation",
"relation": [],
"result": [
[
0,
"計算",
[
"0|6"
],
[],
[
"0|6"
],
[
"0|6"
]
]
]
}
]
}
```
版权声明:本文标题:bing翻译api php,免费翻译接口 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1726843827a1086848.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论