Search code examples
c#azureazure-functionstranslators

C# Azure functions translator


I began to study the azure function

An interesting question is how to implement the function of translating text into any language

I searched for books and googled, and watched the training videos on YouTube, but could not realize it

Also in the future, the process of testing functions is interesting. For example, how to send a million requests and track errors

Can anyone tell me how to implement this function-translator? Or someone has similar.

Thanks


Solution

  • You can use Cognitive Services (Text API) which will perform the translations for you.

    Here's a sample about how to do it: https://learn.microsoft.com/en-us/azure/cognitive-services/translator/quickstart-translate?pivots=programming-language-csharp

    Another good example in here: https://anthonychu.ca/post/realtime-captioning-translation-cognitive-services-signalr-azure-functions/ (this one with Azure Functions)

    and more info about the supported languages: https://learn.microsoft.com/en-us/azure/cognitive-services/translator/language-support