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

Languages support #24

Open
Bleznudd opened this issue Jan 23, 2022 · 4 comments
Open

Languages support #24

Bleznudd opened this issue Jan 23, 2022 · 4 comments

Comments

@Bleznudd
Copy link

Hi,

Since snips support a couple other languages besides english, is there a way to make use of them?
What needs to be translated in order to accomplish this goal?

If you can point me out which files needs to be edited, I can try in making a patch for another language

@createcandle
Copy link
Collaborator

That's a good question.

There are two relevant things:

  • I'd like to switch from Snips to Rhasspy at some point. Rhasspy is, in theory, very comparible with Snips (uses the same MQTT message structure, the Hermes protocol). And it's open source. I'm just not sure if Rhasspy supports the machine learning flexibility yet, where users can speak sentences in various ways.

Rhasspy also supports multiple languages.

  • The mayority of spoken sentences are generated in voco_adapter.py and intentions.py. Especially that second one. Retrofitting translation to various languges might best be done by creating a method that takes the english input and then returns strings for other languages.

I'm not sure how important it is to switch to Rhasspy first. I suspect it's fine to add translation now and switch later. But it's something to keep in mind.

@createcandle
Copy link
Collaborator

It seems intent recognition of Rhasspy still isn't where I hoped it would be.
https://rhasspy.readthedocs.io/en/latest/intent-recognition/

@Bleznudd
Copy link
Author

Thank you, I'll look into those files and try to make another language work.

What do you mean by:

I'm just not sure if Rhasspy supports the machine learning flexibility yet

From their docs it seems to me that snips NLU and rasa NLU are available. Why not switching to Rhasspy using one of these for intent recognition?

@createcandle
Copy link
Collaborator

Cool!

Why not switching to Rhasspy using [Snips NLU]

Interesting idea.

My goal is to make the addon fully open source. Still using Snips NLU would negate that. According to that page Rasa is very slow, and I don't want to lose the speed advantage. Althought I haven't tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant