google-translate

Google translate API v2 - (403) Access Not Configured

扶醉桌前 提交于 2019-12-04 03:17:01
问题 i have problem with Google console API while using Google translate trough it. When i run the test from my local machine, it works great, but when i try to run it at my remote test virtual server it return that 403 above. I am using Simple API access by Server key in console API access and my key is configured to both local and test machine IP addresses. debug: lynx --dump "checkip.dyndns.org"; - IP match with the one in my API key setup in google API console curl -v "https://www.googleapis

Android: How to get arrow button?

被刻印的时光 ゝ 提交于 2019-12-04 03:07:59
I would love to have the arrow button, which is used in google translate, in my app. The one used on the right of the textview here: In which way could I get it with the least loss of quality? Thanks in advance! Egor You can download a pack of Android ActionBar icons here , and the forward arrow is there also. Hope this helps. Take a look in the SDK. The SDK has pretty much all the default icons for Android. You can find it in [ANDROID_SDK_HOME]/platforms/[ANDROID_VERSION]/data/res/ Look in all drawable-xxxx folders (i.e. drawable-xhdpi, drawable-hdpi, etc...) for the icon W0lfw00ds As Egor

Google Translate Widget - Translation complete callback

。_饼干妹妹 提交于 2019-12-04 03:06:58
问题 I'm using the google translate widget on one of my sites with the following google supplied code: <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Text to Speech 503 and Captcha Now

不羁岁月 提交于 2019-12-03 20:58:25
I've been using the Google Text to Speech engine for quite some time and today I've started receiving 503s and captcha requests. My original query was https://translate.google.com/translate_tts?tl=en&q=hi Assuming I needed an API Key, I requested a key and added that to the URL query string https://translate.google.com/translate_tts?tl=en&key=xxxxxxx&q=hi However, my service is still receiving the captcha request. I'm assuming that the API has been changed but can't find any documentation to support this. Anyone else running into this issue? There is no official API for TTS from Google. https:

what is the rate limit for Google translate API V2?

天大地大妈咪最大 提交于 2019-12-03 16:26:42
I am using the Google translate API V2 very intensely and after about 2000 requests I start getting this in the returning JSON: Array ( [error] => Array ( [errors] => Array ( [0] => Array ( [domain] => usageLimits [reason] => userRateLimitExceeded [message] => User Rate Limit Exceeded ) ) [code] => 403 [message] => User Rate Limit Exceeded ) ) Any idea what the rate limit is? and do you have a smart way of regulating the requests rate? I finally found out so I will answer my own question. The rate limit for the API can be set at the admin panel for your API's ( https://code.google.com/apis

Multiple Instances of Google Translate

喜夏-厌秋 提交于 2019-12-03 13:04:18
I'm trying to get multiple instances of Google Translation Drop Down to show up, but it seems it will only pick one to show up. Full Page Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Google Translate</title> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </head> <body> <div id="header" style="background-color: red;"> <div id="google_translate_element"></div>

how do I use the json google translate api?

Deadly 提交于 2019-12-03 08:51:06
I am trying to use google translate from python with utf-8 text. How do I call the json api? They have a document for embedding it in html but I can't find a proper API or wsdl anywhere. Thanks Raphael Here is the code that finally works for me. Using the website without the ajax api can get your ip banned, so this is better. #!/usr/bin/env python from urllib2 import urlopen from urllib import urlencode import urllib2 import urllib import simplejson import sys # The google translate API can be found here: # http://code.google.com/apis/ajaxlanguage/documentation/#Examples def translate(text =

How to use google translator app

久未见 提交于 2019-12-03 07:36:44
问题 I coded program about dictionary sentence and I want to have function to go to "google translator" application in my app How can I use it , Should I import anything? 回答1: From what I can tell, the Google Translate Android app does not expose any standard Intent s that you could use (it's a pitty, but it's weird at the same time. You'd think Google would encourage this type of interaction between apps.. anyway). However, it seems Google have opened up the translate API via a web service. This

In need of an open source text language translation api [closed]

北城以北 提交于 2019-12-03 06:53:39
I have read other posts related to this but I haven't got anything concrete. I am developing an android app using phonegap which needs some sort of text translation. So I searched google translate api but they are charging price for it. They haven't make it available for testing also. So I moved to bing translate but not sure whether we can use it for android or not. If we can use then how can we use it using jQuery. I have searched a lot but not getting any concrete information. So someone please suggest Is there anyway by which google can give their translate api for testing OR A way to use

How to use google translator app

℡╲_俬逩灬. 提交于 2019-12-02 21:06:49
I coded program about dictionary sentence and I want to have function to go to "google translator" application in my app How can I use it , Should I import anything? From what I can tell, the Google Translate Android app does not expose any standard Intent s that you could use (it's a pitty, but it's weird at the same time. You'd think Google would encourage this type of interaction between apps.. anyway). However, it seems Google have opened up the translate API via a web service . This way, you can do the translation yourself and show it within your app. It's a bit more work, but it should