Closed Blu3Lif3 closed 2 years ago
Based on the error, it seems that the path you provided for the ModelPath
or Keypath
is incorrect. Can you make sure those are correct paths? Also, If you run the program, you can see a more detailed error message in the console describing your issue.
Above the error appears when I stop the code a green text
[INFO] Porcupine model path: 'voiceTickets/porcupine_params_de.pv'
[INFO] Porcupine keyword path[0]: 'voiceTickets/de_linux_v2_1_0.ppn
[INFO] Porcupine sensitivity[0]: 0,50
I switched now to linux mint x86_64, getting the same Error
My system is
uname -a Linux 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@Blu3Lif3 does these files exist?
[INFO] Porcupine model path: 'voiceTickets/porcupine_params_de.pv'
[INFO] Porcupine keyword path[0]: 'voiceTickets/de_linux_v2_1_0.ppn
I think the path to them might be incorrect. You can test it yourself with something like .exists()
I've tried it with:
`
String ModelPath = "voiceTickets/porcupine_params_de.pv";
String Keypath = "voiceTickets/Karla_de_windows_v2_1_0.ppn";
// get audio capture device
File Model = new File(ModelPath);
File Key = new File(Keypath);
if(Model.exists()) {
System.out.println("Model exists");
}else {
System.out.println("No Model!");
}
if(Key.exists()) {
System.out.println("KEy exists");
}else {
System.out.println("No KEy!");
}`
The result: both exists
@Blu3Lif3 thank you! OK. The next I think we can do to help me out is to try to reproduce the same issue using one of the official Java demos. Can you please give it a try? Essentially I want to see if you can run the demo on your system as is successfully and if yes can you replace your model/keyword file and still have it working. I can help out more after learning about the outcome. keep me posted.
Thank you for ur help and advices. I will try it tomorrow because im ill. I will give u an update! 🙌 appreciate it man
@kenarsa Hey I have tried it now and I am getting this Error:
oem:~/Desktop/demo/java/build/libs$ java -jar porcupine-mic-demo.jar -a [CODE] -k porcupine
[INFO] Porcupine model path: '/tmp/porcupine-mic-demo/porcupine/lib/common/porcupine_params.pv'
[INFO] Porcupine keyword path[0]: '/tmp/porcupine-mic-demo/porcupine/resources/keyword_files/linux/porcupine_linux.ppn'
[INFO] Porcupine sensitivity[0]: 0,50
ai.picovoice.porcupine.PorcupineActivationException: Initialization failed.
Hmmm ... that means that the engine cannot verify your AccessKey
. Do you have an internet connection? I am assuming you replaced [CODE]
with your own AccessKey
from Console?
Yes of course I've replaced it, I just didnt want others to know my key so i censored it. I have a constant internet connection 400mb. What am I supposed to do next?
do you mind sending your AccessKey to me so we can debug it on our side? hello@picovoice.ai
Yes Thank You ! :)
can you please give it another try?
can you please give it another try?
Yess give me a minute
can you please give it another try?
I've tried it
? did it work...
No unfortunately not, Im getting the same Output in the Console
I checked the server-side and everything looked good! Trying to brainstorm here ... Is your OS standard Ubuntu?
Its the new linux mint :)
Got it! Any chance you can give it a try on standard Ubuntu? I am thinking if that makes a difference then at least I know what might break the process and help with debugging. thank you in advance :)
Yess i will Try it later no problem. I will write you when Im done, Thank You :)
Im now home i will try it on my Desktop PC with ubuntu, i hope this doesnt make any difference
I've run it via Ubuntu Standard with my Desktop PC!
OK. So it runs successfully on Ubuntu standard but not on mint? Can you please confirm? If that is the case then I can start debugging it there.
Yes correct it runs on Ubuntu standard but not on mint
Great. I changed the title to reflect the root cause and I will get someone to work on this. Aiming for a solution in the coming weeks.
Thank you man! Have a good one
Could you recommend me any linux system apart from the ubuntu standard system for the ai?
@Blu3Lif3 - we just tried on Linux Mint 20.3 (Cinnamon Edition) and the Porcupine Java demo is working. At this point, we may have to close this issue based on our inability to reproduce. If you have any unusual settings/configuration on the Mint system you encountered the error on, let us know and we can try again.
Okay Thank you! May it be a problem that the CPU of the laptop is 64 bit with an 32 efi?
That definitely could create problems as the Linux binary is 64-bit only. That would be a configuration I'm comfortable saying that we don't support at this time. I'm going close this issue for now since we can't reproduce and/or do not support the machine configuration in question.
@Blu3Lif3 we were finally able to narrow down the cause of this issue and put in a fix for it. Your laptop that was encountering the error should now work for you.
I'm reopening this issue so that you can confirm the fix and close it once you've confirmed.
Closed due to inactivity
Im trying to create an home assistant with a laptop x86_64 running Raspberry Os. Of I try to run my code i get this Error:
ai.picovoice.porcupine.PorcupineIOException: Initialization failed. at ai.picovoice.porcupine.Porcupine.init(Native Method) at ai.picovoice.porcupine.Porcupine.<init>(Porcupine.java:61) at ai.picovoice.porcupine.Porcupine$Builder.build(Porcupine.java:262) at de.VoiceRecognition.ball.WakeWordDetection.main(WakeWordDetection.java:79)
this is my code:
`
Thank You