mycroft-core icon indicating copy to clipboard operation
mycroft-core copied to clipboard

Changes for Basque language

Open e-gor opened this issue 3 years ago • 13 comments

Changes for Basque language

Description

These changes, along with those sent to other repos, make Mycroft work in Basque language.

Made by Elhuyar, Talaios and Skura

Type of PR

Feature implementation

Dependencies

This PR relies on https://github.com/MycroftAI/lingua-franca/pull/206

e-gor avatar Jul 30 '21 10:07 e-gor

Hello @e-gor! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-07-12 19:53:17 UTC

pep8speaks avatar Jul 30 '21 10:07 pep8speaks

Hello, @e-gor, thank you for helping with the Mycroft project! We welcome everyone into the community and greatly appreciate your help as we work to build an AI for Everyone.

To protect yourself, the project, and users of Mycroft technologies we require a Contributor Licensing Agreement (CLA) before accepting any code contribution. This agreement makes it crystal clear that along with your code you are offering a license to use it within the confines of this project. You retain ownership of the code, this is just a license.

Please visit https://mycroft.ai/cla to initiate this one-time signing. Thank you!

devops-mycroft avatar Jul 30 '21 10:07 devops-mycroft

Voight Kampff Integration Test Failed (Results). Mycroft logs are also available: skills.log, audio.log, voice.log, bus.log, enclosure.log

devops-mycroft avatar Jul 30 '21 10:07 devops-mycroft

Hey Igor, this is awesome, thanks!

For the new TTS and STT modules, we've created a plugin system so that these don't need to be merged and maintained in Mycroft-core. This means we aren't continually expanding core, and makes it easier to get fixes into individual packages. It also means you don't need to wait for merge requests like this to get in. We'll be extracting the existing modules out and making them their own plugin packages as well, just haven't gotten to that yet.

Information on the plugin system is available here: https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/plugins

and there's a complete TTS example here: https://github.com/forslund/mycroft-tts-plugin-gtts

So it will be easiest if this PR only contained translation additions. The nice_relative_time addition will need to be done with an update to Lingua Franca.

Cheers

krisgesling avatar Aug 04 '21 01:08 krisgesling

So you mean I should take out the STT and TTS as modules? All right, but due to holidays, I do not think I will be able before September...

Regarding nice_relative_time, it is in the lingua-franca PR.

e-gor avatar Aug 04 '21 08:08 e-gor

Yeah that's right, it's not sustainable for us to push everything into mycroft-core. The plugins help keep mycroft-core lighter and make it quicker for maintainers to distribute fixes.

Just for clarity I've added the PR to Lingua Franca as a dependency in this PR description.

krisgesling avatar Aug 10 '21 05:08 krisgesling

Information on the plugin system is available here: https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/plugins and there's a complete TTS example here: https://github.com/forslund/mycroft-tts-plugin-gtts

Is this plugin from the same user a valid example of a STT plugin?

e-gor avatar Aug 31 '21 10:08 e-gor

Yeah, that looks right. There's also more available on PyPI if you want some other examples: https://pypi.org/search/?q=mycroft+plugin+stt&o=

krisgesling avatar Sep 01 '21 02:09 krisgesling

I have moved the Basque STT and TTS systems of Elhuyar to their own plugins:

They have been tested and work properly.

So now the PR only contains Basque translation additions and the nice_relative_time addition which is implemented in the lingua-franca PR.

e-gor avatar Sep 02 '21 10:09 e-gor

Necessary changes in lingua-franca PRs done, @krisgesling. Once they are merged, this PR should have no conflict and could therefore be merged too.

e-gor avatar Jun 20 '22 14:06 e-gor

lingua-franca now has the nice_relative_time function (PR has been merged), but integration test still fails saying it does not exist, I do not know why...

e-gor avatar Jul 08 '22 08:07 e-gor

Hey Igor, we need to bump the Lingua Franca version to 0.4.3 in requirements/requirements.txt

I tried to push this to your branch but understandably don't have write access.

That should make the new function available, along with the rest of the Basque support.

krisgesling avatar Jul 12 '22 03:07 krisgesling

Sorry, my mistake (again), was not aware of that...

Did the required change, but there are still errors in the integration tests (though I do not think they are due to our changes, they are in Wikipedia skill, apparently).

e-gor avatar Jul 12 '22 20:07 e-gor