Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support German keywords #7

Open
christophfroeschl opened this issue Feb 21, 2021 · 3 comments
Open

Support German keywords #7

christophfroeschl opened this issue Feb 21, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@christophfroeschl
Copy link

At the moment it is possible to place custom key-words into the porcpuine folder in your profile. This works great for English profile as the porcupine model is set to english. For a German key-word file like one under: https://github.com/Picovoice/porcupine/tree/master/resources/keyword_files_de/raspberry-pi it fails with
[ERROR] Keyword files (.PPN) and model file (.PV) should belong to the same language. Keyword files belongs to 'de' while model file belongs to 'en'.

The reason for this is that in the docker-file you only copy the english model COPY porcupine/lib/common/porcupine_params.pv /porcupine/. However for german the german model https://github.com/Picovoice/porcupine/blob/master/lib/common/porcupine_params_de.pv is required.

Any chance this can be fixed?

@synesthesiam synesthesiam added the bug Something isn't working label Jun 7, 2021
@synesthesiam
Copy link
Contributor

With the switch over to the pvporcupine Python package, I'm hoping this is now fixed (since it's no longer a manual process). Please re-open if it's still a problem.

@AvatarStartup
Copy link

AvatarStartup commented Jul 4, 2021

Hi everyone, I had the same issue but in spanish language:

Keyword files (.PPN) and model file (.PV) should belong to the same language. Keyword files belongs to 'es' while model file belongs to 'en'.

Traceback (most recent call last):
File "/home/cesarisaac/Documentos/Startup/Picovoice/voicedetectorcomputadora.py", line 13, in
porcupine = pvporcupine.create(keyword_paths=['/home/cesarisaac/Documentos/Startup/Picovoice/computadora.ppn'], model_path=['/home/cesarisaac/Documentos/Startup/Picovoice/porcupine_params_es.pv'])
File "/usr/local/lib/python3.6/dist-packages/pvporcupine/init.py", line 68, in create
sensitivities=sensitivities)
File "/usr/local/lib/python3.6/dist-packages/pvporcupine/porcupine.py", line 62, in init
if not os.path.exists(model_path):
File "/usr/lib/python3.6/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not list
[Finished in 398ms with exit code 1]
[cmd: ['python3', '-u', '/home/cesarisaac/Documentos/Startup/Picovoice/voicedetectorcomputadora.py']]
[dir: /home/cesarisaac/Documentos/Startup/Picovoice]
[path: /home/cesarisaac/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

What can we do? Thanks a lot!!!

@synesthesiam synesthesiam reopened this Jul 4, 2021
@asmirnou
Copy link

asmirnou commented Sep 5, 2023

This can be done in the latest porcupine version, which is supported in the following PR: rhasspy/rhasspy-supervisor#11. Can be tried by building from sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants