porcupine: Porcupine Issue: pvporcupine._porcupine.PorcupineRuntimeError
I want to implement porcupine inside my project and to do so I followed all of the instrutions on the website, but when I try to run it, I get this error :
Traceback (most recent call last): File "<path>", line 9, in <module> porcupine = pvporcupine.create(access_key=access_key, keywords=["computer"]) File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pvporcupine\_factory.py", line 69, in create return Porcupine( File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pvporcupine\_porcupine.py", line 164, in __init__ raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]() pvporcupine._porcupine.PorcupineRuntimeError
My whole code is pretty simpled and from the website :
porcupine = pvporcupine.create(access_key=access_key, keywords=["computer"])
recoder = PvRecorder(device_index=0, frame_length=porcupine.frame_length)
try:
recoder.start()
while True:
keyword_index = porcupine.process(recoder.read())
if keyword_index >= 0:
print(f"Detected smth")
except KeyboardInterrupt:
recoder.stop()
finally:
porcupine.delete()
recoder.delete()
I also tried different keywords and even made my own one from the website then downloaded it, but every time I get the same error message.
I am on Windows 11 with python 3.10.11 and porcupine 2.2.0
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (8 by maintainers)
No problem I’ll wait, please ping me when the new library is out
I’m waiting for the fix. I would really appreciate it.