The goal of this project is to show how to use an Azure Cognitive Service from Azure Sphere
File/folder | Description |
---|---|
src |
Azure Sphere Sample App source code |
README.md |
This README file. |
LICENSE.txt |
The license for the project. |
- An Azure Sphere-based device with development features (see Get started with Azure Sphere for more information).
- Setup a development environment for Azure Sphere (see Quickstarts to set up your Azure Sphere device for more information).
Note that the Azure Sphere High Level application is configured for the 21.04 SDK release.
The project demonstrates how to detect text language, and then translate the text to another language (in the project the text is French and is translated to English).
To use the project you will need an Azure account, and have the ability to create an Azure Resource within your Azure Subscription.
You will need to create a translator
resource within your Azure Subscription - Follow the instructions here
Once the translator
resource is created you will need to get the API Key, this can be obtained from the Azure Portal translator resource page:
- Click on
Keys and Endpoint
and then copyKEY 1
to the clipboard. - Open the Azure Sphere application then open
translator.c
- paste the API Key into thetranslatorAPIKey
variable. - Build and Deploy the application (note that the Azure Sphere device needs a network connection for the application to work).
Sample output:
Application starting.
Input text: Il pleut. Tu devrais prendre un parapluie.
Detected language: fr
Translated Text: It's raining. You should take an umbrella.
- The code has been developed to show the common pattern used to call Azure Cognitive Services from Azure Sphere. The code is not official, maintained, or production-ready.
This code is not formally maintained, but we will make a best effort to respond to/address any issues you encounter.
If you run into an issue with this code, please open a GitHub issue against this repo.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
See LICENSE.txt