Microsoft Translation Fails
Using the Microsoft translation service fails on missing region specification.
Providing the translation service with just the configurable Subscription Key fails in my case. Somehow both the end-point and the region needs to be specified to make the calls work. Therefor these specifications need to be configurable in the BTM settings. Such as (taken from the CURL examples):
-H "Ocp-Apim-Subscription-Region:westeurope"
But even the:
"https://api.cognitive.microsofttranslator.com/….”
Comments (7)
-
repo owner -
repo owner -
assigned issue to
- marked as major
-
assigned issue to
-
repo owner I can confirm that the region of the Azure resource needs to be “Global” so I guess that when the API documentation mentions “global translator resource” it’s talking about the subscription and not the web service.
I have made a new version which will allow you to configure the region in BTM but I will not have time to upload it until later today.
-
repo owner - changed status to resolved
Fixes
#19: It is now possible to configure the MS Translator V3 "Region".→ <<cset a9e47ac90e7f>>
-
reporter -
repo owner I found a spare moment. Here’s the new version: http://melander.dk/download/amTranslationManagerInstall-1.1.7465.55536.exe
-
reporter It works like dream. Thanks again!
- Log in to comment
According to the API specification at https://docs.microsoft.com/da-dk/azure/cognitive-services/translator/reference/v3-0-reference#authentication
Since I’m using the Global (non-regional) endpoint api.cognitive.microsofttranslator.com I do not need to specify the Ocp-Apim-Subscription-Region parameter.
I think the problem might be that your Azure Cognitive Services resource is tied to a specific region. The resource I’m testing with has Location=Global.
I will see what I can do about about supporting other regions.