Questions tagged [microsoft-translator]

Microsoft Translator, part of the collection of Cognitive Services and an Azure service, is a cloud-based machine translation service. This tag is for questions relating to using this service and its API/SDK from a programming perspective.

Microsoft Translator

Microsoft Translator, part of the collection of Cognitive Services and an Azure service, is a cloud-based text translation API.

The Microsoft Translator Text API supports text translation and text-to-speech automatically translates between any of the more than 60 supported languages.

Additional functionality includes language detection, transliteration, bilingual dictionary, and customization with the Custom Translator (Preview).

With translations powered by Microsoft Translator, Microsoft’s Speech services offer end-to-end speech translation and supports both speech-to-speech and speech-to-text translation.

It is the same translation service that powers the speech translation capabilities in the Presentation Translator, Microsoft Translator live feature, Skype Translator, and the conversation feature of the Microsoft Translator iOS and Android apps.

Note: The new Speech Service and SDK is replacing the Microsoft Translator Speech API, which will no longer work starting October 15, 2019. For information on switching to the Speech Service, see Migrating from the Custom Speech Service to the Speech Service at https://review.learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-migrate-from-custom-speech-service.

Developer information for Microsoft Translator can be found at the following URL: https://azure.microsoft.com/en-us/services/cognitive-services/translator-text-api/

More details on Cognitive Services can be found here: https://learn.microsoft.com/en-us/azure/cognitive-services

361 questions
41
votes
1 answer

Unable to find type [System.Web.HttpUtility] in PowerShell

I'm trying to obtain an access token for a Microsoft Translator application by using PowerShell, but certain commands in the process fail as a result of the error: Unable to find type [System.Web.HttpUtility] Before receiving this error, I copied…
David Bailey
  • 940
  • 1
  • 10
  • 21
15
votes
3 answers

How to use Bing Translation API?

I am trying to use the Bing Translation API, but I am confused. There seems to be much possibilities (old and new ones) but I don't understand what I have to do. Can someone please help me? I want to send a HTTP Request like…
12
votes
2 answers

How to create microsoft/google translate button for each div separately?

How to create microsoft or google translate button for each div? Each div has content in different language and I would like to add a translate button for each div and make it respond to only that div like the button in the following…
5
votes
2 answers

Bing translator widget without original text popup

I have implemented Bing Translator Widget in my website. It works great. However I could not find any way to disable annoying popups attached to hover event on translated texts that shows original text. Is there any way I can disable it. Thanks in…
Jamol
  • 3,768
  • 8
  • 45
  • 68
5
votes
0 answers

Bing translator API integration

Here is the code I have implemented, here is my Bing application details client ID = pacific__tycoon, client secret == qCtCnigQ1afu8qi705ldOQ3IGy0rabMgHvVL+GU5Xww= Name == pacificty--coon I want a translator just like http://bunkerhill.com/,…
4
votes
1 answer

Monitor language specific API Calls for Microsoft Translator API

Is there any way to monitor the Language Specific USAGE of Translator API (e.g. xx number of characters for english to japanese for Microsoft Translator API. I couldn't see any such metrics in the Metrics Monitoring Section.
Sukuya
  • 120
  • 7
4
votes
2 answers

decoding the JSON output from Microsoft translator API with PHP

this issue seems specific to microsofttranslator.com so please ... any answers, if you can test against it ... Using the following URL for translation: http://api.microsofttranslator.com/V2/Ajax.svc/TranslateArray .. I send via cURL some fantastic…
sdolgy
  • 6,963
  • 3
  • 41
  • 61
4
votes
1 answer

How to use Microsoft Translator API in Android

The Microsoft Translator API for android samples has already been deprecated since march 2017 (just this yr). So I'm having a hard time translating text on android. Can anyone help me make this work on android?. It's just that I already have this…
칼인오
  • 143
  • 1
  • 2
  • 11
4
votes
7 answers

How to remove %EF%BB%BF in a PHP string

I am trying to use the Microsoft Bing API. $data = file_get_contents("http://api.microsofttranslator.com/V2/Ajax.svc/Speak?appId=APPID&text={$text}&language=ja&format=audio/wav"); $data = stripslashes(trim($data)); The data returned has a ' '…
bbnn
  • 3,505
  • 10
  • 50
  • 68
4
votes
1 answer

bing translator language code zh-CN or zh-CHS

I have found that zh-CN and zh-CHS both of them can be used as language code, but why microsoft only tells me only zh-CHS can be used: http://msdn.microsoft.com/en-us/library/hh456380.aspx. Would it make any difference?
jasonjifly
  • 347
  • 1
  • 3
  • 15
3
votes
1 answer

Microsoft Translator charges me 1000 characters for a 20 character translation

Can someone explain why this is happening? I'm using their TranslationContainer sample they've provided. This strikes me as wrong; if I'm translating lots of small pieces of text I'm going to be changed per translation rather than against my quota…
3
votes
0 answers

Challenge with Microsoft Translator API v3.0 for real time translation of HTML documents having more than 5K characters

i am trying to integrate Microsoft Translator API v3.0 for real time translation of HTML documents and i have an active API subscription . There was a javascript based widget available for Microsoft Translator API but it was deprecated in favor of…
V G
  • 31
  • 2
3
votes
1 answer

Translator Text API | Microsoft Azure | Always ERROR 401000

I tried to test Microsoft Translator API Text v3.0 but failed with 401 Access denied. I do standard cURL requests (HTTP POST) using PHP 7.3. $key = "************************"; // secret key here (from the Azure Portal) $host =…
3
votes
0 answers

Microsoft Translator API v3 - PHP using cURL instead of file_get_contents

I want to convert the following code from file_get_contents to curl. This is because file_get_contents doesn't return an error message from the API if it fails. This is Microsoft's sample PHP script (slightly modified) which works as expected: $key …
Leon
  • 1,478
  • 3
  • 16
  • 20
3
votes
3 answers

Azure Translator Text API v3.0 - Possible Error Codes

I'm looking for all possible error codes of the Azure Translator Text API 3.0. I just found one page that describes the format of an error: https://learn.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-reference#errors The…
1
2 3
24 25