lkuza2 / java-speech-api

The J.A.R.V.I.S. Speech API is designed to be simple and efficient, using the speech engines created by Google to provide functionality for parts of the API. Essentially, it is an API written in Java, including a recognizer, synthesizer, and a microphone capture utility. The project uses Google services for the synthesizer and recognizer. While this requires an Internet connection, it provides a complete, modern, and fully functional speech API in Java.
GNU General Public License v3.0
534 stars 301 forks source link

Synthesizer returns 403 and blocks user from Google translate #106

Open piegamesde opened 6 years ago

piegamesde commented 6 years ago

When using the Synthesizer, it tries to use the following link:

http://translate.google.com/translate_a/single?client=t&hl=en&sl=auto&tl=en&text=Hello+world&multires=1&otf=0&pc=0&trs=1&ssel=0&tsel=0&sc=1&dt=t&ie=UTF-8&oe=UTF-8&tk=464692.91119

This results in an IOException and a 403 error as well as blocking the user's IP from using Google translate for a while.

Skylion007 commented 6 years ago

Yeah, it looks like the API endpoint changed: https://github.com/desbma/GoogleSpeech/blob/master/google_speech/__init__.py Would welcome a pull request to fix it.

ZephaniahNoah commented 5 years ago

Still having this issue. It has been a while.