microsoft-translator-java-api icon indicating copy to clipboard operation
microsoft-translator-java-api copied to clipboard

Doesn't Support new Azure Framework

Open JackPGreen opened this issue 9 years ago • 11 comments

Just got an email from Microsoft telling me that from 30th April 2017, the translation service is moving to the Azure framework and will no longer be available.

Can the library be updated to support this?

"Microsoft Translator Text and Speech Translation APIs are now available in the Azure portal under the Cognitive Services category. Existing applications using Microsoft Translator need to be changed before April 30, 2017."

JackPGreen avatar Oct 26 '16 09:10 JackPGreen

Microsoft put an example (C#) to get the AzureToken here https://github.com/MicrosoftTranslator/GetAzureToken

Is there a plan to update the microsoft-translator-java-api to support Azure?

PierreMedart avatar Nov 04 '16 10:11 PierreMedart

likewise would be happy if support for the upcoming new version was added. Any plans? Thanks

darrellberry avatar Dec 02 '16 12:12 darrellberry

I'v update an version for new Azure framework (Use SubscriptionKey instead of ClientId & ClientSecret) https://github.com/firemaples/microsoft-translator-java-api

But you need to download and build the jar file by yourself

You can found SubscriptionKey on Azure portal (https://portal.azure.com/)

firemaples avatar Dec 09 '16 07:12 firemaples

@firemaples how to download and build the jar file myself? Appreciate if you could provide a tutorial or link to tutorial.

zfc0812 avatar Mar 03 '17 07:03 zfc0812

@zfc0812 There is a ready jar file you can just download (https://github.com/firemaples/microsoft-translator-java-api) , or you can build it by yourself:

Download the project and run the command in the lib folder gradle fatJar After the command running finished, yur will found the output jar file in the path: lib/build/libs/lib-with-dependencies.jar

firemaples avatar Mar 04 '17 18:03 firemaples

@firemaples Can you put this up on Maven Central? That would be really great!

tholu avatar Mar 10 '17 19:03 tholu

@firemaples can you merge this fix in from @koenvw

https://github.com/boatmeme/microsoft-translator-java-api/pull/49/commits/67016ffb3e9d80a3a4096e563b6671671c641005

It fixes a known defect, if you cannot or don't want to I can create my own branch.

nicholascowan avatar Mar 14 '17 18:03 nicholascowan

We use https://jitpack.io/ until this goes up on Maven Central. @firemaples Can you tag a new release?

tholu avatar Mar 14 '17 18:03 tholu

@tholu I'll try, please wait me a while

firemaples avatar Mar 18 '17 06:03 firemaples

@tholu I've uploaded the new version library into JCenter and Maven Center, you can just use

Gradle

dependencies {

    compile 'io.github.firemaples:microsoft-translator-java-api:0.8.3'

}

Maven

<dependency>

  <groupId>io.github.firemaples</groupId>

  <artifactId>microsoft-translator-java-api</artifactId>

  <version>0.8.3</version>

  <type>pom</type>

</dependency>

firemaples avatar Mar 20 '17 11:03 firemaples

@firemaples Thanks!

tholu avatar Mar 20 '17 12:03 tholu