Azure

Easy Explore Azure AI Translator

8 1
Written by shohal

Create a Translator resource

You can use the Translator service by creating either a Translator resource or an Azure AI services resource.

For this exercise, create an Translator resource in your Azure subscription.

  1. In another browser tab, open the Azure portal at https://portal.azure.com, signing in with your Microsoft account.
  1. Click the Create a resource button and search for Translator. Select create. You will be
1 1
  1. taken to a page to create a Translator resource. Configure it with the following settings:
2 1
  1. SubscriptionYour Azure subscription.
  2. Resource groupSelect or create a resource group with a unique name.
  3. RegionChoose any available region.
  4. NameEnter a unique name.
3 1
  1. Pricing tier: Standard S0
4 1
  1. Review and create the resource, and wait for deployment to complete. Then go to the deployed resource.
5 1

Explore Translator service

We can explore the capabilities of the Translator service in the Azure Portal.

  1. In the Azure portal, in the deployed resource, review the Overview page.
6 1

  • In the Try it section of the Overview page, under the From: Auto detect section, type the text Welcome to Azure AI Fundamentals. Notice the JSON that appears in correspondence in the View request section.
7 1
  • In the View response section, view the JSON. Behind the scenes, a request has been sent to the Translator service. The response includes the detected source language with a confidence score, a translation using the alphabet of the output language, and an output language code.
  • The demo in the Try it section shows what it would look like if you created a simple translation application with a user interface. In the case of the demo, as soon as you type in text, a request is made to the Translator service. How could you make this request? Check out the Sample Code tab. Here you see examples of code in different programming languages that could be used to make the request.
  • Identify the lines in the code samples where you need to include your Translator service’s Key and Endpoint. With your key and endpoint, you would be able to send a request to the Translator service, and receive a response like you saw in the demo.
  • Navigate to the left hand menu. Under Resource Management, select Keys and Endpoint. If you were to build an application, you would find your key and endpoint here.

Clean-up

  1. Delete your resource once you are done using it.

About the author

shohal

Leave a Comment