porcupine
porcupine copied to clipboard
Porcupine Activation Error
When running the create command for porcupine, I get the below error: porcupine = pvporcupine.create(access_key='u.....................=',keywords=['picovoice', 'bumblebee'])
Traceback (most recent call last):
File "<pyshell#2>", line 1, in
Can you also provide the version of pvporcupine
installed on your computer?
pvporcupine in ......\site-packages (2.1.4)
I cannot reproduce it on my side. Can you confirm that you have access to the internet and there is no firewall blocking it?
closing due to inactivity. re-open if needed
Yes, I have internet connectivity. Have checked all possible solutions, but did not work
Please re-open the issue. The timezone difference causes a delay of few hours
The issue is with pvcobra as well. There might be something I am missing
1- Are you sure you are inputting your AccessKey correctly? Make sure what is between ""
is 100% correct.
2- Can you try your code on some other computer?
3- Can you try one of the official demos for porcupine or cobra and see what you get from them?
4- Please provide detailed information about your machine (OS build etc).
5- Please provide detailed information about your network settings. e.g. firewall settings etc.
1- Are you sure you are inputting your AccessKey correctly? Make sure what is between "" is 100% correct. ==> Yes 2- Can you try your code on some other computer? ==> Not working 3- Can you try one of the official demos for porcupine or cobra and see what you get from them? ==> The demos are not working. Maybe I am inputting in a wrong way 4- Please provide detailed information about your machine (OS build etc). ==> OS Name Microsoft Windows 10 Enterprise Version 10.0.19042 Build 19042 5- Please provide detailed information about your network settings. e.g. firewall settings etc. ==> Firewall would be ON always since I am using my company's laptop
let me try on my personal machine once. All devices I have tried are either office machines or connected to office network.
It is working on a personal machine. But, again unable to
keyword_path = ['E:/New_Folder/PYAUDIO/xyz.ppn'] porcupine = pvporcupine.create(access_key=access_key, keyword_paths=keyword_path)
File "E:\BLASTOISE\PYAUDIO\trails_raspberry.py", line 14, in
==> The same worked on colab
progress ... your work computer firewall or something in your network is causing the issue regarding activation.
the invalid argument is about something in your input arguments is incorrect. I can't tell you what it is cause I don't know what you have on your computer.
Yes. it is an issue with firewall regarding activation. But even after following the porcupine documentation as is, I get the 'invalid argument error'.
I can't tell you what it is cause I don't know what you have on your computer. ==> Sure. I understand. Let me know if any further info is needed to understand this. All the commands I used are posted above. Or at least the ones in bold correct?
Updating paths and commands in above comment
The screenshot shows that you are using a keyword (.ppn) generated for Raspberry-pi on a Windows machine. Can you fix this and try again?
Yes. It indeed works with windows version. Guess, the problem is with my simulation of raspberry pi on windows. Thanks a lot for the support.