-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finished write on down stream... Error #1
Comments
// https://pastebin.com/C66n2dbD <-- after a while this was in the console |
Hello :) I have readen you code . Multiple mistakes i have seen ( Just to correct you , so you become better). 1)We never stop a Thread using stop() method . Possible it doesn't even exist on Java 9. 3)Create a repository with your project (in case you want to share it with me and people ) . I will of course help you . 4)Have you created you own Waiting for your response to continue investigation . |
|
// in my file, there are 3 folders,
the plugins are not important, but i make it for later things, (I want to add the "speech commands" in the plugins) |
1 ) You have to give credit card for GOOGLE_API_KEY , i will make a tutorial about it soon :) 2 ) I want from you to give 30 minutes of your life to learn how to create a repository for Github and how to upload it (GitHub Desktop is a useful application for uploading your files ) . I want you to try . 3 ) Instad of stop() we are using different techniques , like loops with flags and more , search on the web (Best ways to stop java Thread ) , it's quite a complex topic ( Threads are so beautiful once you learn them believe me ... actually it takes years to master the topic IT IS SOMETHING VERY IMPORTANT WITH MODERN COMPUTERS which have multiple CPU CORES ) In the mean time i will read your code and improve it. |
Try this : Class DotBot , line 95 you are missing an
|
here is my repository --> https://github.com/BubbleEgg/DotBot |
Also
|
ok, so is the problem fixed? |
and when i try it with the InterruptedException, IntelliJ says that this exeption is never thrown? |
There is a problem here , even when you stop the Microphone the Thread nevers exits . Add
There is a problem with the library As about the Thread stopping keep in mind the above and i will soon add Java Google Speech Recognition on XR3Player , then you know for soore i will investigate this issue :) . |
it dont let me compile it, with the error |
Well i got into this . Tell me your application has a pom.xml file ? Yes IntelliJ is correct about InterruptedException, you don't need it , i am using another version of the Java-Speech-Api that i have changed some things .... In your project you must use V2.02 version of https://github.com/lkuza2/java-speech-api/releases Though if you are using pom.xml with Maven modify this pom.xml for your needs , you have nothing to download Maven will take care for all the jars . I figured ```java-speech-api`` how to download from https://jitpack.io just know , i will update pom.xml of my repository accordingly . [Remember this is the jar from the Owner of the Project ] , i am further modifying it to my repository ... [https://github.com/goxr3plus/java-speech-api ] [ The repository i made is experimental so always use the Owners one jar as shown below]
|
Since the owner Project released a lot of things have changed along with bug fixes . That might be what causing the problems ... lot of pull requests since [ January 2016 when the V2.02 releases ] -> https://github.com/lkuza2/java-speech-api/commits/master |
so, i dont know how to use the pom.xml can you help me with that or do i need it anyway?, and I am using the V2.02? can you tell me what i have to do now? |
//little update, I tried some things and now it works great. Now I'm using your version of the J.A.R.V.I.S and it workes good, but the method stopSpeechReginison() gives me a NullPointerExeption, so... -->I use your JARVIS without the stopSpeechReginison() but it works. |
You mean you downloaded the version of Jarvis from my repository? I just
added stopSpeechRecognition() method yesterday and I didn't test it full.
Gonna fix some things...
|
ok xD |
I have fixed your problem and added a new SnapShot jar in my repository . I see that the owner of the project doesn't care for pull requests generally , either for emails i send so .... I modified the repository , added example also how to use :) -> https://github.com/goxr3plus/java-speech-api |
thats good :) |
Hello,
I try to make a bot like the "Alexa" from Amazon for my school project, and i found you on youtube...
So, my problem is, that I want, that my Alexa is listening "forever", but when I say nothing for a while, my program say's: "Finished write on down stream..." in the console. I tried to make the google speech to text as a thread, and i restart the theard every 20 seconds, but it doesn't work. But this time with the theard, it writes "Finished write on down stream..." 10 times at the same time in the chat.
I hope you can fix it, thanks
// https://pastebin.com/WY5izrkb <-- my code
// https://pastebin.com/QABMizRy <-- my console output
The text was updated successfully, but these errors were encountered: