Java-accessible web service for translation? - java

I now have a running Java program which only lacks of the final step,that is:
suppose I have a String1 ="Obama"
is there any online translation API that I could use to get the corresponding Chinese word back,and put it in another String2="奥巴马“.
I've tried BabelFish,but that doesn't seem to provide any service for Java program.
Thanks guys,really need your help here to find some translation API for me that I could use in my Java program.
Robert

try Google Translate

You can use Google API Translate Java.
Provides a simple, unofficial, Java
client API for using Google Translate.

Because of Google's decision in May 2011 to no longer have a free translation service (er I mean to deprecate the translator api), I see that there is need for other answers to this question.
One such alternative I found is Microsoft Translator Java Api . Just saying ...

Google Translate Kit. Java Wrapper just released

Related

Google Drive link sharing using Java

I want my Java code to generate Google Drive share links to certain files. I have seen posts which explained how to do it by using other programming languages, but I could not find anything about doing that in Java. Any thoughts?
You can do it using Google drive Java API. Check out this link
https://o7planning.org/en/11889/manipulating-files-and-folders-on-google-drive-using-java

How to use java-google-translate-text-to-speech api?

I read one answer here (How to use Google Translate API in my Java application?) and started to use java-google-translate-text-to-speech api as it is free.
But when I use this api in a standalone java file, I am facing an issue : "Your client does not have permission to get URL /translate_a/t from this server. That’s all we know." HTTP Reponse Code 403-Forbidden error.
Do I need to use API key to use this api ?
Is there any sample code which uses API key ?
I am posting a question for the first time so apologies if the formatting is incorrect.
Thanks in advance !!
The official API is 20$ for 1 million characters (proportionally), so you could still consider using it as it's quite cheap.
The project you're referring to hasn't been updated in a long time, so it could just be broken due to changes by Google....
In the comments they also referenced this project, you could try using this, but I would still recommend the official API's.

Are there MSNP Implementation for Java, ActionScript (Flash) exist?

Interesting if there any Implementation of MSNP Live Messanges Protocol for Java or ActionScript (Flash)?
Here's one for ActionScript: http://code.google.com/p/as3msnp/
This seems to be the only one: http://sourceforge.net/apps/trac/java-jml
As per Microsoft new policy towards Skype MSNP12 protocol is not working.
major host of following reference are now responding
Microsoft Service host and ports
So, JML lib is now useless which work over MSNP8-15.
Here is another thread over MSNP - What's the future of MSNP
I used the below API in a chating server we were developing 4 years ago , at that time MSNP10 was working with us.You can download the API from below link and I found it very easy to getting started with this API based on the documentation and examples they have provided on their website.
http://sourceforge.net/apps/trac/java-jml/
Good Luck.

google java api for google search

Does google provide a Java server side api **(NOT java script).**I dont want the ajax api which works at clint side.
What i want is that the result returned for a keyword should return me search result in some specific data structure.Like List or set data structure.Then i want to manipulate the result according to my need in java code.
I had used such a java server site api for youtube.
They used to but is discontinued. Most likely because you can remove their ads ;-)
From Google's terms of service
You may not send automated queries of any sort to Google's system
without express permission in advance from Google.
So, no - use their AJAX API. The SAOP API is discoutinued, but I think you should be able to use it, unless it requires a key, in which case you are tied to the AJAX API
Technically, the statement quoted above doesn't mean you can't use some sort of server-side API - there are examples of that if you google around. It means you shouldn't do it, because sooner or later you will be blacklisted (banned), as violating the terms.
What you would be looking for now is the CustomSearch API:
They used to have a different API developers could use but it has been depreciated (Nov. 2009 I think) so this is a for cost service now. I am not aware how long it might have been a free service. The new API allows 100 free searches a day, but you have to be signed up for billing else anything above 100 searches will fail, here are the details:
http://code.google.com/apis/customsearch/v1/overview.html
And sorry yes, this would still be using Java Script but you could use this:
http://www.json.org/java/
There is at least a SOAP API that I'm aware of: Google SOAP Search API
I don't think Google wants 3rd parties to use their search engine for their own services/applications. You would get "we think you are a robot" error page as a result if Google thinks you are not a real person.
You can however try Google Custom Search

(Vocal code) Need some help finding text-to-speech addon

I am looking for an addon that can say characters vocally. It is for non-commercial use, and it would be nice if it can vocalize more languages, like asian, english etc...
I have googled it, but can't seem to find anything for free use.
Update: This is for web use
You could try http://espeak.sourceforge.net/ and make an mp3 of the word, then stream it to a flash application (you could use darwin for the streaming).
You can convert the text to speech in Java using freetts1.2 API. It is quite simple to use. This link could be useful for you which has an example program.
http://learnsharelive.blogspot.com/2011/01/convert-text-to-speech-java-freetts12.html
What yo uare searching for ist Sphinx4. Some free speech models for other languages can be found here.
A similar question has been asked regarding Java Text-to-Speech engines. Take a look at the question Java: Text to Speech engines overviewand see if any of the responses are helpful.
It's unlikely that you'll find an Actionscript 2.0 or 3.0 text to speech codebase, as sound synthesis is only just being introduced in the upcoming Flash Player version 10.
Java however has many, try this, this, or even that!

Categories

Resources