Hi everybody!
Someone please can tell me if the team of mycroft is working to realize italian version of picroft?
Thank you!
Hi there @Angelo_Yaoming, firstly a huge welcome to Mycroft - itâs great to have you with us.
Weâre just starting to build out our languages support at the moment - itâs very experimental. This document outlines all the different pieces that have to be in place to be able to support a new language:
We have some documentation on configuring Mycroft for Italian on Linux, but these instructions may not apply to Italian.
You may also want to help support our translation efforts on Mycroft Translate for Italian:
https://translate.mycroft.ai/it/
Ciao ciao
Kathy
hello, Iâm tring to configure Picroft in Ityalian, but I have some problem, he recognize the Italian and also answer in Italian, but the answer is always the same: âiâm finishing to loadâ.
I tried the 2 link above but the links not work.
do you have more documentation?
thanks.
Silvio
I havenât done it myself, but I hear that getting a different language to work is a bit of work still. We are making progress, but itâs not yet as simple as selecting a new language unfortunately. Have you followed all the steps in the documentation to configure each of the components to use Italian?
Was Mycroft working in English to start with? Did this message start after changing things to Italian or was it saying the same kind of message in English?
There is a lot of new documentation that we need to write, and as the language support changes quickly, itâs not something that we have prioritised. There are quite a few members in the community who are using different languages though. If you jump into the Languages Chat they may have more direct experience getting started too.
Hi @gez-mycroft
Yes I started the first time Picroft in English and works great, so I decided to change language only after I had a working AI in Englis.
thanks, yes I started to follow the documentation but I have some doubt about the file to change. I see that I have 3 " mycroft.conf
", the first is located in â.mycroft/mycroft.confâ, the second in " /etc/mycroft/mycroft.conf
" and the third one in â/mycroft-core/mycroft/configuration/mycroft.confâ.
- I start modifing the first file in â.mycroft/mycroft.confâ but at the reboot it wae overwritten with the original value.
- After the first fail I changed the full config in the file located in â/mycroft-core/mycroft/configuration/mycroft.confâ and something happens at the reboot, the Picroft understand the Italian and also answer in Italian, but always with the same sentence related to the no possibility to load the application. I just ask questio to Picroft on weather (because this skill as already the italian), but nothing.
Iâll go today deep in detail on the link that you send to me.
- Do you have some suggestion about the order file change? --> is not clear to me which âmycroft.confâ I have to change, or if I have to change all the 3 files.
- There are some other steps to perform after the change in the file âmycroft.confâ?
Thanks.
~/.mycroft/mycroft.conf
was the right one to start with, but others have had the same issue of it being overwritten on startup. We will need to look into whatâs happening there.
In the meantime you can edit /etc/mycroft/mycroft.conf
instead.
This shouldnât get overwritten but best to keep a backup of the file just in case.
Just know that anything in ~/.mycroft/mycroft.conf
will override settings in /etc/mycroft/mycroft.conf
but by default thereâs normally just a single line in there.
Also worth noting that JSON is very specific, so having a comma out of place means nothing will work at all, so just need to be careful.
I believe there should be three areas where you need to set the language:
- overall language
- STT language
- TTS language
The STT and TTS settings can also be a bit tricky even if youâre staying with English as the 3rd party services (Google, Watson, etc) sometimes change the information they need.
If youâre still having trouble maybe post the config file here so we can see the settings.
hi @gez-mycroft
I modified the file ~/.mycroft/mycroft.conf in this way:
{
"lang": "it-it",
"max_allowed_core_version": 18.8,
"play_wav_cmdline": "aplay -Dhw:0,0 %1",
"play_mp3_cmdline": "mpg123 -a hw:0,0 %1",
"enclosure": {
"platform": "picroft"
},
"stt": {
"module": "mycroft",
"mycroft": {
"lang": "it-it"
}
},
"tts": {
"mimic": {
"lang": "it"
}
},
"ipc_path": "/ramdisk/mycroft/ipc/"
}
the device seem to be set in italian but, always say âPer favore aspetta un attimo mentre finisco di caricare il mio softwareâ (wait that i upload my software).
I have wait for 30 minute without any success.
Any idea?
thanks
Hi,
I am not sure about the âttsâ section in your mycroft.conf. Maybe you can try following:
"tts": {
"module": "google",
"google": {
"lang": "it"
}
},
Hi @Dominik and @gez-mycroft,
I tried again following the suggestion of @Dominik, but I notice that the file â/mycroft-core/mycroft/configuration/mycroft.confâ override my user configuration, if I not change this portion:
{
// Definition and documentation of all variables used by mycroft-core.
//
// Settings seen here are considered DEFAULT. Settings can also be
// overridden at the REMOTE level (set by the user via
// https://home.mycroft.ai), at the SYSTEM level (typically in the file
// â/etc/mycroft/mycroft.confâ), or at the USER level (typically in the
// file â~/.mycroft/mycroft.confâ).
//
// The load order of settings is:
// DEFAULT
// REMOTE
// SYSTEM
// USER
//
// The Override: comments below indicates where these settings are generally
// set outside of this file. The load order is always followed, so an
// individual systems can still apply changes at the SYSTEM or USER levels.
// Language used for speech-to-text and text-to-speech.
// Code is a BCP-47 identifier (https://tools.ietf.org/html/bcp47), lowercased
// TODO: save unmodified, lowercase upon demand
"lang": "it-it",
of that file, my user file is not taken.
Any idea?
thanks a lot
also modifing the header with " âlangâ: âit-itâ, " the message is always the same:
âPer favore aspetta un attimo mentre finisco di caricare il mio softwareâ (wait that i upload my software).
I can upload the log file?
thanks
Try pastebin.com and post the link here
Are you running Picroft downloaded as image or do you have a git-install?
I installed Picroft downloaded as image, non able to install it via git on raspbian
OK, you are using the Picroft-Image - in this case you should put your settings in ~/.mycroft/mycroft.conf
by this your settings are loaded after all other configuration and overwrites the default. See the documentation on mycroft.conf location.
Hi,
I modified the setting in ~/.mycroft/mycroft.conf but the same result, also setting google, it seems like the AI still waitng to load some config, if I use english no problem the basic skill works, I also checked if I have the it vocabulary and is present, any suggestion on some other files to set-up
thanks
Strange, I just replicated this and had to change the primary defaults conf myself. Will flag this with the team.
Essentially Mycroft configuration consists of 4 possible locations:
-
mycroft-core/mycroft/configuration/mycroft.conf
(Defaults) -
https://home.mycroft.ai
(Remote) -
/etc/mycroft/mycroft.conf
(Machine) -
~/.mycroft/mycroft.conf
(User)
It loads them in this order so the User level conf should always override the Defaults but that doesnât seem to be happening for âlangâ.
I did however get Italian responses using the following User level conf, as well as changing âlangâ in Defaults.
{
"lang": "it-it",
"max_allowed_core_version": 18.8,
"stt": {
"module": "mycroft",
"mycroft": {
"lang": "it-it"
}
},
"tts": {
"module": "google",
"google": {
"lang": "it"
}
}
}
Iâm wondering if your âipc_pathâ setting is the problem. Do you remember why you set that?
Try removing that line and see if you have any success. Also make sure to remove the comma on the line before.
Solved, sorry for the confusion with your suggestion works.
thanks
Hooray!!!
Glad itâs working now, if you find any translations that arenât quite right, please consider suggesting an alternative in translate.mycroft.ai
There are many that might be valid translations of a word but donât make sense in another context. Eg âturnâ can mean many things, but would likely be translated differently if it was âturn off the lightâ vs âtake the next turnâ.
Hi everyone!
Iâm trying to make Mycroft (on Ubuntu pc) working in italian, but unfortunately I was not able to make it work, and not finding the old guide pages for italian is not helpful. Could someone explain me how to set-up the speech to text and the wake word? tts is the only component that seem to work flawlessy.
Regarding the stt:
- Iâve tried both mycroft, google and google_cloud, but for the latter Iâve not a credit card attached to my google account so I canât use the google speech recognition api, or am I wrong?
Whatâs the easiest to use stt engine for italian? - What about an offline stt like Sphinx? Where could I find instruction on how to make it work in italian?
Wake word:
All the time I change the wake word, the log message says he canât find the italian languge model for pocketsphinx? I think this message is related to my last question, isnât it?
My .mycroft/mycroft.conf file is quite simple
{
âmax_allowed_core_versionâ: 19.2,
âlangâ: âit-itâ,
âsttâ: {
âmoduleâ: âmycroftâ, # google_cloud
âmycroftâ: {
âlangâ: âit-itâ
},
âgoogle_cloudâ:{
âlangâ: âit-itâ,
âcredentialâ:{
âjsonâ: {
âtypeâ: âservice_accountâ,
âproject_idâ: âabcdefgâ,
âprivate_key_idâ: âmykeyâ,
âprivate_keyâ: â-----BEGIN PRIVATE KEY-----stuffâEND PRIVATE KEY-----\nâ,
âclient_emailâ: "myaccount@myproject.com",
âclient_idâ: â123456789â,
âauth_uriâ: ââ,
âtoken_uriâ: ââ,
âauth_provider_x509_cert_urlâ: ââ,
âclient_x509_cert_urlâ: "
}
}
}
},
âttsâ: {
âmoduleâ: âgoogleâ,
"google": {
"lang": "it"
},
"espeak": {
"lang": "it"
}
}
}
Ciao Francesco,
I used the suggestion from gez-mycroft, check the files located here:
mycroft-core/mycroft/configuration/mycroft.conf
(Defaults)https://home.mycroft.ai
(Remote)/etc/mycroft/mycroft.conf
(Machine)~/.mycroft/mycroft.conf
(User)
and setup this config:
{
"lang": "it-it",
"max_allowed_core_version": 18.8,
"play_wav_cmdline": "aplay -Dhw:0,0 %1",
"play_mp3_cmdline": "mpg123 -a hw:0,0 %1",
"enclosure": {
"platform": "picroft"
},
"stt": {
"module": "mycroft",
"mycroft": {
"lang": "it-it"
}
},
"tts": {
"mimic": {
"lang": "it"
}
},
"ipc_path": "/ramdisk/mycroft/ipc/"
}
otherwise try this other config:
{
"lang": "it-it",
"max_allowed_core_version": 18.8,
"stt": {
"module": "mycroft",
"mycroft": {
"lang": "it-it"
}
},
"tts": {
"module": "google",
"google": {
"lang": "it"
}
}
}
the important think is to understand which of the first 4 listed files is used as default config by your installation.
let me know.
Yep just to be clear, the config files are loaded in that order, so the later config files like ~/.mycroft/mycroft.conf
will be loaded last and override all others.
Also just noticed the line:
"max_allowed_core_version": 18.8,
Make sure to remove or update this allow your device to continue receiving software updates.