Integrate Bing translator into your own system

Source: Internet
Author: User

Integration of this function is because aliexpress buyers from different countries, my "small seller" sync to the buyer's message, a lot of Spanish, Russian and other small language text, can not understand.

Google is a wall, rarely open, domestic translation, basically do not provide APIs.

I choose Bing Translator, because:

1. Its level of translation is really no worse than Google.

2, can be accessed.

3, can be used for free (my dosage is not large).

To use Bing Translator you must:

1, register as a user of Microsoft Azure Marketplace

https://datamarket.azure.com/home/
Landed successfully, after a pile of confirmation is.


2. Modify your account to be anywhere outside of mainland China.
Https://datamarket.azure.com/account
Because the service does not support mainland China.

3, subscribe to the Microsoft Translator API
Https://datamarket.azure.com/dataset/bing/microsofttranslator
Free users can use 2 million characters a month, a messy mess, 2 million characters enough.


4, register the application:
Https://datamarket.azure.com/developer/applications
Client ID, which is the customer ID
The client key is Secret Code
REDIRECT URI random fill

I have compiled a set of APIs, source code:

Https://github.com/gruan01/Bing-Translate

Including:
Language detection: Detect
Get language Support list: Getlanguagesforspeak/getlanguagesfortranslate
Voice: Speak
Basic translation: Translate

Other uses, so there is no integration, if necessary, you can refer to:

Https://msdn.microsoft.com/en-us/library/ff512419.aspx

The specific use of this set of APIs can be consulted:

Https://github.com/gruan01/Bing-Translate/blob/master/AsNum.BingTranslate.Api.Test/AuthTest.cs

All API methods are packaged once in Unity's policy injection (policyinjection) to achieve automatic authentication, except that the place is a bit out of the way, and the rest is simple.

----------------

Finish

Integrate Bing translator into your own system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.