/PythonConsole

Sample Python command-line application using the Text Translation API

Primary LanguagePythonOtherNOASSERTION

PythonConsole is a command-line application in a Visual Studio solution. It demonstrates how to get an authentication token and how to use Translator Text API to translate text from one language to text in another language.

The sample application only offers translation between 5 languages, but the service offers translations for 50+ languages.

This sample requires a subscription with Microsoft Translator Text API, which is part of Microsoft Azure Cognitive Services. Visit the Text Translation API documentation page to get started.

After subscribing to the Text Translation API, visit the Azure developer portal to retrieve your subscription secret key. Paste this client secret in the sample application code (in MTPythonSampleCode.py) and you are ready to go.