rhasspy / rhasspy-hermes-app

Helper library to create voice apps for Rhasspy in Python using the Hermes protocol
https://rhasspy-hermes-app.readthedocs.io
MIT License
17 stars 10 forks source link

Let the app load its intents/slots/… from a file #11

Open koenvervloesem opened 4 years ago

koenvervloesem commented 4 years ago

Let the app load its intents/slots/… from a file and re-train Rhasspy on installation/startup of the app.

See https://github.com/rhasspy/rhasspy-hermes/issues/12

maxbachmann commented 4 years ago

One thing to keep in mind with this is that it should only retrain when there was a change (either to the files or some other settings like e.g. the language) and not on each restart, since training can take very long when a lot of sentences need to be generated.

koenvervloesem commented 4 years ago

Good point. So we should compare the locally defined intents and slots with the ones known/trained by Rhasspy then, and only trigger Rhasspy to re-train when they differ?

maxbachmann commented 4 years ago

I think it would be hard to compare them to the trained ones, since this would require generating them aswell. Reasons to retrain from the top of my head:

One more thing is that when skills retrain by sending their intents + slots we do want them to do this at the same time. It would be a complete mess when:

I am currently not sure how to implement this in an optimal way.