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

Rhino Issue: issue when French language is used #240

Closed
safsoun opened this issue Dec 6, 2021 · 2 comments
Closed

Rhino Issue: issue when French language is used #240

safsoun opened this issue Dec 6, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@safsoun
Copy link

safsoun commented Dec 6, 2021

Hello,

I got a notification that different languages are now supported in rev 2.0.0 which is very nice (Issue #160). Thank you a lot for that.
However, I tried to a do a test with French language with STM32F769-Disco board, I got the following error:
[ERROR] Keyword files (.PPN) and model file (.PV) should belong to the same language. Keyword files belongs to 'fr' while model file belongs to 'en'.
This is what I did:

  • In the console, and in Language menu I've selected French language.
  • Created a new context.
  • Fill the context with different commands in French.
  • Save and train the model.
  • Tested the command with the PC microphone in the console: the commands are detected perfectly.
  • Downloaded the latest version of Picovoice from github and in the demo under \demo\mcu\stm32f769\stm32f769i-disco, copied the new generated context array in CONTEXT_ARRAY in pv_params.h in French section.
  • Activated French language in the project preprocessor by replacing the flag PV_LANGUAGE_ENGLISH by PV_LANGUAGE_FRENCH then compiled the project.
  • Loaded the project and at the beginning, in the trace, I got the previous error!
    Am I missing something?
    Thank you for your help.
@safsoun safsoun added the bug Something isn't working label Dec 6, 2021
@mrrostam mrrostam self-assigned this Dec 6, 2021
@mrrostam mrrostam added question Further information is requested and removed bug Something isn't working labels Dec 6, 2021
@mrrostam
Copy link
Member

mrrostam commented Dec 6, 2021

The project needs to be linked to an appropriate library based on the selected language as well. That's why there are 4 different configurations in the demo project. So just go ahead and select the French configuration from Project -> Build configuration -> Set Active -> ReleaseFrench. That should do the job.

@safsoun
Copy link
Author

safsoun commented Dec 7, 2021

It's working now :) .. Thank you very much!

@mrrostam mrrostam closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants