|schneefux e6268fa3dd add info about fork||1 year ago|
|boot||3 years ago|
|client||2 years ago|
|languages||2 years ago|
|static||2 years ago|
|tests||2 years ago|
|.coveragerc||2 years ago|
|.gitignore||2 years ago|
|.travis.yml||2 years ago|
|AUTHORS.md||2 years ago|
|CONTRIBUTING.md||3 years ago|
|LICENSE.md||2 years ago|
|README-fork.md||1 year ago|
|README.md||2 years ago|
|jasper.py||2 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.