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
535 stars 301 forks source link

Connection abort after a short time #104

Closed twister21 closed 6 years ago

twister21 commented 7 years ago

Hello,

I would like to use the Speech API for a home system. That's why the connection needs to be alive for a long time. Unfortunately, at the moment the connection aborts after a short time. The output of inStream.toString() (--> Scanner) contains: "[source closed=true]". Furthermore the message "Finished write on down stream..." appears.

What could be the reason for this error? Doesn't Google allow a permanent connection or is it the fault of the HttpsURLConnection created by Java?

Skylion007 commented 6 years ago

I really have no idea of knowing, but it should have anything to do with Java's end.