![]() If you don’t already have the MBS Xojo CURL Plugin, download it and install it. You’ll need these in order to make API calls. Be sure to make note of both the “Access key ID” and “Secret access key” values that are automatically assigned. There’s no need to assign any tags to the user, so you can skip that step.Īnd finally, create an Access key for the user. Give the user a name such as “XojoTranslater.” For the “AWS access type” be sure to select “Programmatic access.” Add the user to the “translate” group that you created above. Under Users, click the “Add user” button. For example, you might call the group “translate.” As you are creating the group, give it the “TranslateFullAccess” permission. Under Groups, create a new group and give it a recognizable name. This will present you with the IAM Dashboard. ![]() ![]() To do so, under Services, select “IAM” (which can be found in the “Security, Identity, & Compliance” category). Next, you’ll need to create an “Identity and Access Management” (IAM) user. If you already have an AWS account, log into the account. In order to use Amazon Translate, you’ll need an AWS account. This results in translations that are extremely accurate. In other words, the service doesn’t just translate words. When performing a translation, the service reads the text one sentence at a time, and reads each word individually, to determine the meaning of a sentence. The API responds with the translated text.Īmazon Translate uses machine learning and neural networks that have been designed specifically for language translation. You send it text in a “source language,” tell the API what that source language is, as well as the “target language” that you want the text translated to. But first, let’s learn a little about Amazon Translate.Īmazon Translate is an API that can be used to translate text on demand. We’ll use the MBS Xojo CURL Plugin, which makes calling the Amazon Translate API easy. In this post, I’ll walk you through the process of getting signed up for Amazon Translate, and then share some code that you can use to add language translation to your own Xojo projects. ![]() The service, called Amazon Translate, is available as one of many services that are available through Amazon Web Services. I did some research and found that Amazon provides a service that does exactly what the client was asking for. However, they wanted the translation function to be built directly into the app and to be performed “on demand.” They wanted to be able to translate the product information, which is provided in English, to other languages (such as French, German, etc). The client wanted something similar to Google Translate. The Xojo app obtains product information (including product names, descriptions, and other marketing-related information) from suppliers via a SOAP call, and returns the data in a JSON-encoded response. Recently, I was asked by a client if it would be possible to build language translation functionality into a Xojo-based middleware solution that I had developed for them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |