|schneefux e6268fa3dd add info about fork||1 year ago|
|boot||3 years ago|
|client||3 years ago|
|languages||3 years ago|
|static||3 years ago|
|tests||3 years ago|
|.coveragerc||3 years ago|
|.gitignore||3 years ago|
|.travis.yml||3 years ago|
|AUTHORS.md||3 years ago|
|CONTRIBUTING.md||3 years ago|
|LICENSE.md||3 years ago|
|README-fork.md||1 year ago|
|README.md||3 years ago|
|jasper.py||3 years ago|
This is an outdated fork of https://github.com/jasperproject/jasper-client.
With these patches it is possible to use Jasper with different languages. Only the Time, Unclear, Joke (partial) and Life plugins are translated yet.
I wanted to use Jasper in German, so I did the following on my Arch Linux laptop:
aplay -D hw:1,0 str(filename)to
aplay str(filename)in client/stt.py
phonetisaurus/dict-xsampa.fstand the hmm_dir was
voxforge-de-r20141117/model_parameters/voxforge.cd_cont_3000. After some fiddeling I realized that there are different formats,
XSAMPA. pocketsphinx needs
ARPA, but my model was
XSAMPA- luckily there is a script to convert inbetween them. I changed a regular expression, added an option for the conversion and included this script. You need to add the line
fst_ist_xsampa: truebelow the line with
msgfmt messages.po. The phonetized words seem to be cached in
~/.jasper/vocabularies, so you should flush it with
rm -rf ~/.jasper/vocabularies.
voice: 'german'in the profile.yml.
pico/tts/main.cppand replace the path
ttsEngine->init(synth_done, '../lang')to the absolute path to the
langdirectory, because otherwise you need to be in the
ttsdirectory when running
client/tts.py. Here is a gist, it's hacky and insecure but works.