将 Pvporcupine SDK 用于 Picovoice 时出现运行时错误 python
runtime error while using Pvporcupine sdk for Picovoice python
我正在使用 pvporcupine python picovoice SDK 进行热词检测,但在使用以下代码时出现运行时错误
import pvporcupine
access_key = "[my_acces_key]" # AccessKey obtained from Picovoice Console (https://picovoice.ai/console/)
#access key is altered for security reason
handle = pvporcupine.create(access_key=access_key, keywords=['porcupine'])
这里是错误堆栈跟踪
Traceback (most recent call last):
File "c:/Users/Pjan/saa2/actions/pic_again.py", line 5, in <module>
handle = pvporcupine.create(access_key=access_key, keywords=['porcupine'])
File "C:\Users\Pjan\.conda\envs\sam_env\lib\site-packages\pvporcupine\__init__.py", line 82, in create
sensitivities=sensitivities)
File "C:\Users\Pjan\.conda\envs\sam_env\lib\site-packages\pvporcupine\porcupine.py", line 158, in __init__
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]()
pvporcupine.porcupine.PorcupineRuntimeError
的官方网站
非常感谢任何帮助!
好吧,我联系了 picovoice 的官方存储库,在这里我向他们提到了清楚发生的事情。
所以任何人仍然面临它,那么这里是这种行为的解决方案 https://github.com/Picovoice/porcupine/issues/617
谢谢!
我正在使用 pvporcupine python picovoice SDK 进行热词检测,但在使用以下代码时出现运行时错误
import pvporcupine
access_key = "[my_acces_key]" # AccessKey obtained from Picovoice Console (https://picovoice.ai/console/)
#access key is altered for security reason
handle = pvporcupine.create(access_key=access_key, keywords=['porcupine'])
这里是错误堆栈跟踪
Traceback (most recent call last):
File "c:/Users/Pjan/saa2/actions/pic_again.py", line 5, in <module>
handle = pvporcupine.create(access_key=access_key, keywords=['porcupine'])
File "C:\Users\Pjan\.conda\envs\sam_env\lib\site-packages\pvporcupine\__init__.py", line 82, in create
sensitivities=sensitivities)
File "C:\Users\Pjan\.conda\envs\sam_env\lib\site-packages\pvporcupine\porcupine.py", line 158, in __init__
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]()
pvporcupine.porcupine.PorcupineRuntimeError
的官方网站
非常感谢任何帮助!
好吧,我联系了 picovoice 的官方存储库,在这里我向他们提到了清楚发生的事情。 所以任何人仍然面临它,那么这里是这种行为的解决方案 https://github.com/Picovoice/porcupine/issues/617 谢谢!