office交流网--QQ交流群号

Access培训群:792054000         Excel免费交流群群:686050929          Outlook交流群:221378704    

Word交流群:218156588             PPT交流群:324131555

微软的必应Bing Translate 翻译 API 开始支持粤语了

2017-08-09 22:21:00
zstmtony
原创
9976

微软的必应Bing Translate 翻译 API 开始支持粤语了



Microsoft Translator(微软翻译)API 是一套开放的 web API,可以集成到任何网站或应用程序中,以及任何设备 (服务器、PC、智能手机、平板电脑)和任何操作系统上。

非常方便,在Access Excel 的VBA中也可以调用


可以参考这篇技巧: Excel翻译函数完整版-中英韩日通吃


现在又开始支持 粤语了,不过是繁体的。

对应的语言代码是: "yue","yue","粤语(繁体)",不光支持文本翻译 ,还支持粤语的语音(分男声和女声)


以下这个表格是以前微软翻译API支持的语言 (as of June 2016):
语言编码:Language Code 语言英文名:English Name

af

Afrikaans

ar

Arabic

bs-Latn

Bosnian (Latin)

bg

Bulgarian

ca

Catalan

zh-CHS

Chinese Simplified

zh-CHT

Chinese Traditional

hr

Croatian

cs

Czech

da

Danish

nl

Dutch

en

English

et

Estonian

fi

Finnish

fr

French

de

German

el

Greek

ht

Haitian Creole

he

Hebrew

hi

Hindi

mww

Hmong Daw

hu

Hungarian

id

Indonesian

it

Italian

ja

Japanese

sw

Kiswahili

tlh

Klingon

tlh-Qaak

Klingon (pIqaD)

ko

Korean

lv

Latvian

lt

Lithuanian

ms

Malay

mt

Maltese

no

Norwegian

fa

Persian

pl

Polish

pt

Portuguese

otq

Querétaro Otomi

ro

Romanian

ru

Russian

sr-Cyrl

Serbian (Cyrillic)

sr-Latn

Serbian (Latin)

sk

Slovak

sl

Slovenian

es

Spanish

sv

Swedish

th

Thai

tr

Turkish

uk

Ukrainian

ur

Urdu

vi

Vietnamese

cy

Welsh

yua

Yucatec Maya

新的最全的语言列表


da:new Language("da","da","丹麦语",false),uk:new Language("uk","uk","乌克兰语",false),ur:new Language("ur","ur","乌尔都语",true),ru:new Language("ru","ru","俄语",false),bg:new Language("bg","bg","保加利亚语",false),tlh:new Language("tlh","tlh","克林贡语",false),"tlh-Qaak":new Language("tlh-Qaak","tlh-Qaak","克林贡语 (pIqaD)",false),hr:new Language("hr","hr","克罗地亚语",false),otq:new Language("otq","otq","克雷塔罗奥托米语",false),ca:new Language("ca","ca","加泰隆语",false),hu:new Language("hu","hu","匈牙利语",false),af:new Language("af","af","南非荷兰语",false),hi:new Language("hi","hi","印地语",false),id:new Language("id","id","印度尼西亚语",false),tr:new Language("tr","tr","土耳其语",false),ty:new Language("ty","ty","塔希提语",false),"sr-Latn":new Language("sr-Latn","sr-Latn","塞尔维亚语 (拉丁文)",false),"sr-Cyrl":new Language("sr-Cyrl","sr-Cyrl","塞尔维亚语 (西里尔文)",false),cy:new Language("cy","cy","威尔士语",false),bn:new Language("bn","bn","孟加拉语",false),yua:new Language("yua","yua","尤卡坦玛雅语",false),he:new Language("he","he","希伯来语",true),el:new Language("el","el","希腊语",false),de:new Language("de","de","德语",false),it:new Language("it","it","意大利语",false),lv:new Language("lv","lv","拉脱维亚语",false),no:new Language("no","no","挪威语",false),cs:new Language("cs","cs","捷克语",false),fj:new Language("fj","fj","斐济",false),sk:new Language("sk","sk","斯洛伐克语",false),sl:new Language("sl","sl","斯洛文尼亚语",false),sw:new Language("sw","sw","斯瓦希里语",false),ja:new Language("ja","ja","日语",false),ko:new Language("ko","ko","朝鲜语",false),to:new Language("to","to","汤加语",false),fr:new Language("fr","fr","法语",false),pl:new Language("pl","pl","波兰语",false),"bs-Latn":new Language("bs-Latn","bs-Latn","波斯尼亚语",false),fa:new Language("fa","fa","波斯语",true),th:new Language("th","th","泰语",false),ht:new Language("ht","ht","海地克里奥尔语",false),et:new Language("et","et","爱沙尼亚语",false),sv:new Language("sv","sv","瑞典语",false),mww:new Language("mww","mww","白苗文",false),lt:new Language("lt","lt","立陶宛语",false),"zh-CHS":new Language("zh-CHS","zh-CHS","简体中文",false),yue:new Language("yue","yue","粤语(繁体)",false),"zh-CHT":new Language("zh-CHT","zh-CHT","繁体中文",false),ro:new Language("ro","ro","罗马尼亚语",false),fi:new Language("fi","fi","芬兰语",false),en:new Language("en","en","英语",false),nl:new Language("nl","nl","荷兰语",false),fil:new Language("fil","fil","菲律宾语",false),sm:new Language("sm","sm","萨摩亚语",false),pt:new Language("pt","pt","葡萄牙语",false),es:new Language("es","es","西班牙语",false),vi:new Language("vi","vi","越南语",false),ar:new Language("ar","ar","阿拉伯语",true),mg:new Language("mg","mg","马尔加什语",false),ms:new Language("ms","ms","马来语",false),mt:new Language("mt","mt","马耳他语",false)



如何使用微软翻译 API


Microsoft Translator(微软翻译)API 是一套开放的 web API,可以集成到任何网站或应用程序中,以及任何设备 (服务器、PC、智能手机、平板电脑)和任何操作系统上。
按照以下4个步骤开始使用微软翻译 API:

如果你还没有Azure 的帐户,请在微软 Azure 注册帐户 http://azure.com
如果你已经有微软 Azure 帐户,可以直接登录: http://portal.azure.com.

添加 Microsoft Translator(微软翻译)的订阅到你的Azure帐户
登录 http://portal.azure.com, 之后,进入 认知服务的产品目录 section.

在下"API 类型"选择文本翻译或语音翻译 API.

每次只能添加一个 API 订阅

在 定价选项(Pricing Tier) 中选择适合你需要的订阅使用量选项。

每个订阅都包括免费档。免费档具有和付费档相同的产品特性和功能,并且没有有效期的限制。

填写表格中的其它部分,然后选择“创建” 按钮

所有订阅立即生效。

获取您的客户密钥:点击 菜单中的 所有资源 - 我的订阅
密匙值是用于账户的认证,请妥善保管密匙,在部署你的应用程序时需要使用。


学习,测试和获得技术支持
微软翻译 API 技术文档.

免费的开源应用程序示例: GitHub.

测试文本翻译 API: 使用Document Translator
测试语音翻译API: 使用Speech Translator
寻求答案或询问技术问题:翻译技术论坛.
自定义功能

除了翻译API,我们还提供两个免费的定制化工具。

Translator Hub

使用 Translator Hub, 发布前的自定义工具,可以创建为你的领域优化的翻译系统,更符合你自己的应用术语和风格。

Collaborative Translation Framework (CTF)

作为 API的一部分,这个在发布后优化的工具,允许你与你的同事以及合作社区优化和调整翻译结果,得到更高的翻译质量和准确度。

详细的使用教程在这里:https://www.microsoft.com/zh-cn/translator/getstarted.aspx


https://translator.microsoft.com/

http://translate.bing.com

    分享