Thanks for your helpful reply .
At first i just want to change the "wake word" to a german word. Next step would be switching complete speech recognition to local pocketsphinx installation.
What i have done so far:
1. Downloaded cmusphinx-de-ptm-voxforge-5.2.tar.gz, cmusphinx-voxforge-de.lm.gz and cmusphinx-voxforge-de.dic from https://sourceforge.net/projects/cmusphinx. I used the "ptm" version because it contains a file named "sendump" which i found also in the original "en-us/hmm" folder.
Extracted and copied the files according to the wiki document.
Created the following directory/file structure:
"/home/thorsten/mycroft-core/mycroft/client/speech/model/de-de" containing the files "cmusphinx-voxforge-de.lm" and "cmusphinx-voxforge-de.dic" (these files should not be neccesary for just changing the wake up word).
"/home/thorsten/mycroft-core/mycroft/client/speech/model/de-de/hmm" containing the files "feat.params", "mdef", "means", "mixture_weights", "noisedict", "README.md", "sendump", "transition_matrices", "variances".
Set ""lang": "de-de" in mycroft.conf and set a german wake up word
During start auf "start.sh voice" i receive the following error:
2017-06-18 10:57:59,233 - mycroft.configuration - DEBUG - Configuration '/home/thorsten/.mycroft/mycroft.conf' not found
_ Carnegie Mellon University, Copyright (c) 1999-2011, all rights reserved_
_ mimic developers, Copyright (c) 2016, all rights reserved_
_ version: mimic-126.96.36.199 ()_
Traceback (most recent call last):
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/main.py", line 221, in _
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/main.py", line 190, in main_
_ loop = RecognizerLoop()_
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/listener.py", line 193, in __init___
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/listener.py", line 209, in loadconfig_
_ self.mycroft_recognizer = self.create_mycroft_recognizer(rate, lang)_
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/listener.py", line 220, in create_mycroft_recognizer_
_ return LocalRecognizer(wake_word, phonemes, threshold, rate, lang)_
_ File "/home/thorsten/mycroft-core/mycroft/client/speech/local_recognizer.py", line 40, in __init___
_ self.decoder = Decoder(self.create_config(dict_name))_
_ File "/home/thorsten/.virtualenvs/mycroft/local/lib/python2.7/site-packages/pocketsphinx/pocketsphinx.py", line 271, in __init___
_ this = pocketsphinx.newDecoder(*args)_
RuntimeError: newDecoder returned -1_
After some google research i found that this error may occur if the "model" path is not set using python. But since the path is configured similar to the "en-us" path i think that this is not the problem (https://github.com/cmusphinx/pocketsphinx/issues/32).
I checked the git changes you made and described in the wiki and as far as i understand the first two commits has been merged and the other two are closed at the moment. So i did not change anything within the code right now. Is this neccesary for just changing the wakeup word in the first step?
- Just for testing i renamed the original folder "en-us" to "en-us.old" and the german folder "de-de" to "en-us". Just to check if it's a problem with the path or with the content of the directory. Since the error is still there it seems to be a problem within the content of the "de-de" folder.
(I think) I'm using the dev branch (whatever happens by default executing this command: it clone https://github.com/MycroftAI/mycroft-core.git)
I'm using ubuntu server 16.04
At the moment i didn't take a look at "lspeech", because i think it's just needed for the second step.
Would be great if you can give me another hint.
Thanks so far :-).