Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:speech:simon [2017/03/05 08:45] – [model] scipio | tips:speech:simon [2017/03/14 20:59] (current) – [compile] scipio | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== simon ====== | ====== simon ====== | ||
+ | |||
+ | speech model basically consists of two parts: | ||
+ | * Language model: Describes all existing words and what sentences are grammatically correct. It will be created from your active scenario | ||
+ | * Acoustic model: Describes how words sound. It will be either built solely through your voice recordings (training) or with the help of a base model | ||
+ | |||
+ | |||
+ | SPHINX backend" | ||
+ | * PocketSphinx recognizer | ||
+ | * SphinxTrain model generation backend | ||
+ | |||
+ | models: | ||
+ | * US English HUB4 WSJ SPHINX model. This model is part of pocketsphinx-extra where it is called \" | ||
+ | ===== install sphinx ===== | ||
+ | |||
+ | prereq | ||
+ | <code bash> | ||
+ | sudo apt install bison gradle openjdk-8-jdk | ||
+ | </ | ||
+ | |||
+ | build from sources http:// | ||
+ | |||
+ | |||
+ | |||
===== install ===== | ===== install ===== | ||
+ | |||
+ | |||
+ | |||
<code bash> | <code bash> | ||
sudo apt install simon | sudo apt install simon | ||
- | sudo apt install libsphinxbase3 python-sphinxbase sphinxbase-utils pocketsphinx | + | sudo apt install libsphinxbase3 python-sphinxbase sphinxbase-utils pocketsphinx |
</ | </ | ||
Line 14: | Line 40: | ||
</ | </ | ||
+ | ===== compile ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get build-dep simon | ||
+ | |||
+ | git clone git:// | ||
+ | cd simon | ||
+ | export QT_VERSION=qt4 | ||
+ | rm -fR build | ||
+ | ./ | ||
+ | </ | ||
==== model ==== | ==== model ==== | ||
+ | |||
+ | === adapting === | ||
+ | |||
+ | http:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install pocketsphinx-en-us/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | mkdir /tmp/model | ||
+ | cd /tmp/model | ||
+ | cp -a / | ||
+ | cp / | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === training === | ||
+ | |||
+ | |||
+ | training from http:// | ||
+ | |||
+ | * download [[model|http:// | ||
+ | * enter and sphinxtrain -t an4 setup | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== old ==== | ||
For small amount of data for training without context-dependent models use continuous model instead of semi-continuous one and this error will be solved. | For small amount of data for training without context-dependent models use continuous model instead of semi-continuous one and this error will be solved. |