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
531 stars 304 forks source link

YOU NEED ORG.JSON API //Error while using API #112

Closed deckenventilator24 closed 6 years ago

deckenventilator24 commented 6 years ago

When I want to recognize something i get an error.

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject at com.darkprograms.speech.recognizer.Recognizer.parseResponse(Recognizer.java:368) at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForFlac(Recognizer.java:282) at de.Robin.assistent.SpeechToText.main(SpeechToText.java:45) Caused by: java.lang.ClassNotFoundException: org.json.JSONObject at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more

Can anyone help me?

deckenventilator24 commented 6 years ago

When you use org.json API it will work