azure-sphere-gallery/TranslatorCognitiveServices
Jonathan Phippen 6bedcdfa1e
Added valgrind to container and updated sample and README to show exa… (#137)
* Added valgrind to container and updated sample and README to show example of checking for memory leaks

* Updated sample and README to include Visual Studio usage, removed unnecessary lines

* Fixed builds of existing samples by removing the deprecated azsphere_configure_tools and azsphere_configure_api

* Add AzureSphereSquirrel to excludes since it uses the broken DEBUG_LIB feature

* Missing comma
2024-07-24 09:49:52 +01:00
..
src Added valgrind to container and updated sample and README to show exa… (#137) 2024-07-24 09:49:52 +01:00
LICENSE.txt Translator Cognitive Services project (#39) 2021-06-14 14:13:50 +01:00
README.md changed docs.ms.com to learn.ms.com (#95) 2022-09-26 08:46:07 -07:00

README.md

TranslatorCognitiveServices

The goal of this project is to show how to use an Azure Cognitive Service from Azure Sphere

Contents

File/folder Description
src Azure Sphere Sample App source code
README.md This README file.
LICENSE.txt The license for the project.

Prerequisites & Setup

Note that the Azure Sphere High Level application is configured for the 21.04 SDK release.

How to use

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 copy KEY 1 to the clipboard.
  • Open the Azure Sphere application then open translator.c - paste the API Key into the translatorAPIKey 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.

Project expectations

  • 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.

Expected support for the code

This code is not formally maintained, but we will make a best effort to respond to/address any issues you encounter.

How to report an issue

If you run into an issue with this code, please open a GitHub issue against this repo.

Contributing

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 opencode@microsoft.com with any additional questions or comments.

License

See LICENSE.txt