![]() ![]() For more information, see Cognitive Services security.ĪzureKe圜redential credential = new(key) For production, use a secure way of storing and accessing your credentials like Azure Key Vault. ![]() Remember to remove the key from your code when you're done, and never post it publicly. For more information about using a regional endpoint, see Translator text sdks. For this project, authenticate using the global endpoint. The authentication varies slightly depending on whether your resource uses the regional or global endpoint. To do so, create an AzureKe圜redential with your key from the Azure portal and a TextTranslationClient instance with the AzureKe圜redential. To interact with the Translator service using the client library, you need to create an instance of the TextTranslationClientclass. Select version 1.0.0-beta.1 from the dropdown menu and install the package in your project. Select the Browse Tab and the Include prerelease checkbox and type Azure.AI.Translation.Text. Right-click on your Translator-text-sdk project and select Manage NuGet Packages. NET 6.0 (Long-term support), and then select Create. In the Additional information dialog window, select. In the Configure your new project dialog window, enter text-translation-sdk in the Project name box. Choose the Console Application template, then choose Next. On the Create a new project page, enter console in the search box. On the Get started page, choose Create a new project. ![]() For this quickstart, we use the latest version of Visual Studio IDE to build and run the application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |