Closed MuhammadBilal848 closed 4 months ago
I solved it.
When I trained the model, I accidentally downloaded it in the Android build and was running it on Windows. I trained the model again and downloaded it in the Windows build. Then, I ran this command::
porcupine_demo_mic --access_key MY_API --keywords helfen
Then came another error (🤣):
[0] Keyword file (.ppn) and model file (.pv) should belong to the same language. File belongs to
dewhile model file (.pv) belongs to
en.
This is the language model error, so I downloaded the correct language model from here and put it inside "common" folder created by porcupine. and I added model_path arg in the next command and voilaaaa it worked.
The final command was this:
porcupine_demo_mic --access_key MY_API --keywords helfen --model_path 'C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\lib\common'
Have you checked the docs and existing issues?
SDK
Python
Porcupine package version
3.0.2
Framework version
3.12.3
Platform
Windows (x86_64)
OS/Browser version
Chrome - Version 124.0.6367.91 (Official Build) (64-bit)
Describe the bug
I trained a model using porcupine console choosing a language and a wake word, then I downloaded the model and got a .ppn file. I put the file in the folder of keywords where all other wake word files are available.
C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\resources\keyword_files\windows
When I ran the help using cmd to check if the trained wake word became available, using the command:
I got this:
As you can see the wake word file is available "helfen".
When I tried running the file using the command:
I am getting this error:
How can I resolve this?
Steps To Reproduce
I do not know.
Expected Behavior
The code should run the model and be able to detect the word "Helfen"