# (solved almost) Can't change the language to French

**URL:** https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075
**Category:** Localizations and Accessibility
**Created:** [July 2, 2018, 2:38pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075 "2018-07-02T14:38:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 2, 2018, 2:38pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/1 "2018-07-02T14:38:29Z")

</div>

Hello,  
I’m working about mycroft since June, and I want to switch it to french,  
I followed the tutorial here : [https://mycroft.ai/documentation/language-support/french/](https://mycroft.ai/documentation/language-support/french/) but I have some problems.  
Even if i change the mycroft.conf, the wake\_word are not detected,

Sincerely Yours,  
AussenacB.

---

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 2, 2018, 3:45pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/2 "2018-07-02T15:45:55Z")

</div>

Re, I just found my errors !  
First I just have to modify the mycroft.conf locate at .mycroft,  
Then I tested with one skill, I changed the file Vocab to “fr” and that works !

---

<div class="post-metadata">

### Author: ![KathyReid](https://community.openconversational.ai/user_avatar/community.openconversational.ai/kathyreid/32/1949_2.png) [@KathyReid](https://community.openconversational.ai/u/KathyReid)
#### Post date: [July 2, 2018, 3:51pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/3 "2018-07-02T15:51:21Z")

</div>

Fantastic! Thanks for posting the solution!

---

<div class="post-metadata">

### Author: ![McFly3025](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@McFly3025](https://community.openconversational.ai/u/McFly3025)
#### Post date: [July 2, 2018, 7:11pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/4 "2018-07-02T19:11:31Z")

</div>

@Baptiste_Aussenac

How exactly did you manage to get mycroft work in french? I’m trying to get mycroft up and running in german, but without success. I’ve been following the guide for german language setup which is pretty similar to the guide for french language support. Unfortunately mycroft doesn’t react at all when saying the wake word.  
Did you use a Mark device or mycroft for Linux (which I am using) or some other setup?  
Where do I find the file Vocab to change the language setting?  
Which skill did you test with?

Hope you get give me some hints to get mycroft speak german.

Thanks in advance

McFly

---

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 2, 2018, 8:29pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/5 "2018-07-02T20:29:54Z")

</div>

Hey, let me try to help you,  
First, I have two files mycroft.conf, the first have the modified lines ( locate at .mycroft/mycroft.conf)

```auto
     "lang": "fr",

     "listener": {

       "wake_word": "salutations mycroft",
       "phonemes": "SS AA LL UU TT AA SS YY ON . M AY K RR AO F T",
       "threshold": 1e-10,
       "standup_word": "salutations",
       "standup_phonemes": "ss aa ll uu tt aa ss yy on",
       "standup_threshold": 1e-10
     },
   "tts": {
     "module": "espeak",
     "espeak": {
       "lang": "fr",
       "voice": "m1"
     }
   }
   }

```

and the second one is locate here : ~/mycroft-core/mycroft/configuration/mycroft.conf it contain the default configuration.

---

<div class="post-metadata">

### Author: ![Dominik](https://community.openconversational.ai/user_avatar/community.openconversational.ai/dominik/32/1936_2.png) [@Dominik](https://community.openconversational.ai/u/Dominik)
#### Post date: [July 2, 2018, 9:25pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/6 "2018-07-02T21:25:17Z")

</div>

Here is my solution for german language (works on PiCroft). I decided to go with the english default wake word “hey mycroft” as it feels not to uncomfortable in german.  
Current setting below uses Google-TTS but you can switch to espeak if you want to by changing “module”: “google” to “module”: “espeak” (it took me some time to understand that I have to “apt-get get install espeak” to make it work…)

> ```
> {
> ...
> "tts": {
> "module": "google",
> "espeak": {
> "path": "/usr/bin/espeak",
> "lang": "de",
> "voice": "mb-de2"
> },
> "google" : {
> "lang": "de"
> }
> },
> "hotwords": {
> "hey mycroft": {
> "module": "precise"
> }
> },
> "lang": "de-de"
> ...
> 
> ```
> 
> }

Note: after reboot it sometimes takes a minute or two until german language is initialized.

---

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 3, 2018, 1:04pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/7 "2018-07-03T13:04:04Z")

</div>

Do you know where is the file “pocketsphinx\_audio\_consumer.py” and do I have to change the hotword\_factory.py too ? (there is some lines which contains lang=“en-us”) .  
Tnx.

I want to know if it’s possible to talk two languages at the same time.

---

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 3, 2018, 1:42pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/8 "2018-07-03T13:42:05Z")

</div>

Oh I forgot to inform that the file for grammar  
`this one : _your_base_dir_mycroft/client/speech/recognizer/model/fr/fr.lm`  
isn’t available but it’s write on the tutorial

---

<div class="post-metadata">

### Author: ![McFly3025](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@McFly3025](https://community.openconversational.ai/u/McFly3025)
#### Post date: [July 3, 2018, 7:11pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/9 "2018-07-03T19:11:41Z")

</div>

@Dominik @Baptiste_Aussenac  
Thanks for your help

@Dominik  
Installing espeak did the job. Now Mycroft understands what I’m saying in German. Unfortunately, the only answer I get for any question is “not loaded”. I guess the problem is that the skills are not set to German language!? Did you make any changes to your skill files?

Best regards

---

<div class="post-metadata">

### Author: ![Dominik](https://community.openconversational.ai/user_avatar/community.openconversational.ai/dominik/32/1936_2.png) [@Dominik](https://community.openconversational.ai/u/Dominik)
#### Post date: [July 3, 2018, 8:17pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/10 "2018-07-03T20:17:16Z")

</div>

I have used espeak only for text-to-speech voice output. But the espeak voice is very robotic/synthetic and I used it only for an hour or two until I figured out how to use Google-TTS with german voice (see my configuration example above).

My speech-to-text voice input is handled by Google-STT via setting in home.mycroft.ai.

Some skills (time-date, weather) have already some basic translation to german, but it seems that not all of them were done by native speakers. Right now i am contributing some more/better translations, starting with fallback-unknown and weather…

---

<div class="post-metadata">

### Author: ![McFly3025](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@McFly3025](https://community.openconversational.ai/u/McFly3025)
#### Post date: [July 4, 2018, 7:30pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/11 "2018-07-04T19:30:31Z")

</div>

Hi Dominik,

thanks again for your assistance. I tried your suggested settings with google as well. The only progress I made was, that now Mycroft seems to also answer in German. But the only answer I get for each question I ask is “Not Loaded”, which is pronounced in a pretty German way. There are a few Errors showing in CLI so I guess this has nothing more to do with language support directly. So I will open a new thread to find some solutions.  
But thanks for bringing me that far.  
Best regards

---

<div class="post-metadata">

### Author: ![Baptiste\_Aussenac](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@Baptiste\_Aussenac](https://community.openconversational.ai/u/Baptiste_Aussenac)
#### Post date: [July 4, 2018, 9:36pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/12 "2018-07-04T21:36:44Z")

</div>

maybe it’s because you haven’t skills in german ?  
You have to create the “german version” (as you see in the vocab, it’s “en-US”. did you do that ?

---

<div class="post-metadata">

### Author: ![McFly3025](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@McFly3025](https://community.openconversational.ai/u/McFly3025)
#### Post date: [July 5, 2018, 4:29pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/13 "2018-07-05T16:29:49Z")

</div>

No, I didn’t. Where can I find that vocab file? Is “vocab” the full name of the file or is there an ending missing?

---

<div class="post-metadata">

### Author: ![McFly3025](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@McFly3025](https://community.openconversational.ai/u/McFly3025)
#### Post date: [July 5, 2018, 4:48pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/14 "2018-07-05T16:48:58Z")

</div>

Hi @Baptiste_Aussenac,

I fond the folders and did the changes. Now it works. Thanks a lot for your help.

---

<div class="post-metadata">

### Author: ![BugHunterPhilosopher](https://community.openconversational.ai/user_avatar/community.openconversational.ai/bughunterphilosopher/32/1316_2.png) [@BugHunterPhilosopher](https://community.openconversational.ai/u/BugHunterPhilosopher)
#### Post date: [September 4, 2018, 6:13pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/15 "2018-09-04T18:13:48Z")

</div>

Good evening,

I’ve tried all you said, unfortunately I still have this exception:

mycroft.client.speech.hotword\_factory:initialize:267 - ERROR - Could not create hotword. Falling back to default.  
Traceback (most recent call last):  
File “/home/nostromo/Documents/programmation/mycroft-core/mycroft/client/speech/hotword\_factory.py”, line 260, in initialize  
instance = clazz(hotword, config, lang=lang)  
File “/home/nostromo/Documents/programmation/mycroft-core/mycroft/client/speech/hotword\_factory.py”, line 73, in **init**  
self.decoder = Decoder(config)  
File “/home/nostromo/Documents/programmation/mycroft-core/.venv/lib/python3.5/site-packages/pocketsphinx/pocketsphinx.py”, line 277, in **init**  
this = \_pocketsphinx.new\_Decoder(\*args)  
RuntimeError: new\_Decoder returned -1

I use the dev branch. I can’t find the expected content in the Python files found in the documentation (listener.py and pocketsphinx\_audio\_consumer.py): is the code editing still needed?

Any ideas, please?

---

<div class="post-metadata">

### Author: ![KathyReid](https://community.openconversational.ai/user_avatar/community.openconversational.ai/kathyreid/32/1949_2.png) [@KathyReid](https://community.openconversational.ai/u/KathyReid)
#### Post date: [September 6, 2018, 12:47pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/16 "2018-09-06T12:47:29Z")

</div>

Hi there @BugHunterPhilosopher, thanks for reporting this.

The error means that the `decoder` failed to find PocketSphinx models in the path that was specified in your code. How did you specify the PocketSphinx models?

---

<div class="post-metadata">

### Author: ![BugHunterPhilosopher](https://community.openconversational.ai/user_avatar/community.openconversational.ai/bughunterphilosopher/32/1316_2.png) [@BugHunterPhilosopher](https://community.openconversational.ai/u/BugHunterPhilosopher)
#### Post date: [September 6, 2018, 3:46pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/17 "2018-09-06T15:46:17Z")

</div>

Fair enough. I have all in /usr/local/share/pocketsphinx/model/fr/fr as the documentation says. How am I supposed to instruct Mycroft to pick them up, please?

---

<div class="post-metadata">

### Author: ![KathyReid](https://community.openconversational.ai/user_avatar/community.openconversational.ai/kathyreid/32/1949_2.png) [@KathyReid](https://community.openconversational.ai/u/KathyReid)
#### Post date: [September 6, 2018, 4:39pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/18 "2018-09-06T16:39:47Z")

</div>

To be honest I’m not sure - our language support is _experimental_ at the moment. You may wish to join our French language chat root at [https://chat.mycroft.ai/community/channels/language-fr](https://chat.mycroft.ai/community/channels/language-fr) as there are others who do have French set up successfully; they may be able to assist.

---

<div class="post-metadata">

### Author: ![BugHunterPhilosopher](https://community.openconversational.ai/user_avatar/community.openconversational.ai/bughunterphilosopher/32/1316_2.png) [@BugHunterPhilosopher](https://community.openconversational.ai/u/BugHunterPhilosopher)
#### Post date: [September 6, 2018, 5:17pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/19 "2018-09-06T17:17:27Z")

</div>

Thank you, I’ll do that!

---

<div class="post-metadata">

### Author: ![slin](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@slin](https://community.openconversational.ai/u/slin)
#### Post date: [September 11, 2018, 9:36pm UTC](https://community.openconversational.ai/t/solved-almost-cant-change-the-language-to-french/4075/20 "2018-09-11T21:36:31Z")

</div>

Hey Dominik,  
thank you, your configuration helped me a lot today! I fiddled a little and got the svox-pico voice working for mycroft. I think it’s way superior to the espeak voices. If anyone is interested here is a litte rundown:

**comparison espeak picovox**  
(with two soundsamples): [Sprich Freund und tritt ein – Sprachausgabe für den Raspberry Pi mit eSpeak und SVOX-pico | IT@UDE](http://blogs.uni-due.de/zim/2014/03/21/sprich-freund-und-tritt-ein-sprachausgabe-fur-den-raspberry-pi-mit-espeak-und-svox-pico/)

**installing svox-pico**  
You need:  
speech-dispatcher  
speech-dispatcher-pico  
spd-say

command:  
`sudo apt install speech-dispatcher speech-dispatcher-pico spd-say`

try it:  
`spd-say -l de -o pico "Hallo, wie geht es dir?"`

**mycroft.conf:**

> {  
> “tts”: {  
> “module”: “spdsay”,  
> “spdsay”:{  
> “lang”:“de”,  
> “voice”:“pico”  
> }  
> },
> 
> ```
> "lang": "de-de"
> 
> }
> 
> ```

**modified version of mycroft-core/mycroft/tts/spdsay\_tts.py:**

modified line is bold:

```
 def execute(self, sentence, ident=None):
        self.begin_audio()
        subprocess.call(
            **['spd-say', '-w', '-l', self.lang, '-o', self.voice, sentence])**
        self.end_audio()

```

Because without the -w (wait till spd-say has finished) the audio output is disrupted in the middle if there is another output coming along. “-o pico” (when voice = pico) is telling speech-dispatcher / spd-say which speech-synthesizer to use.

Hope this helps anybody. Bye 👋
