Install git-lfs for large-file support.
pip install web.py inflect git+http://github.com/kylebgorman/textgrid.git celery
You also must install
-
mpg123 for converting mp3 -> wav files https://sourceforge.net/projects/mpg123/files/mpg123/
-
python3 if you don't have it (and
python3 -m pip install pyyaml numpy scipy TextGrid
) -
HTK tools: http://htk.eng.cam.ac.uk/download.shtml
- note: if you are having trouble installing this and there is a problem with X11, use
configure --without-x --disable-hslab
so you don't need X11 (for graphing)
- note: if you are having trouble installing this and there is a problem with X11, use
-
gdata and all its dependencies here: https://github.com/google/gdata-python-client
-
kitchen (for unicode parsing) here: https://pypi.python.org/pypi/kitchen/
-
sox
-
sphinxbase and pocketsphinx: sphinxbase, pocketsphinx
- read this on how to download them:
On Mac OS, execute main.py and preview in http://localhost:8080/
For cross-computer compatibility, create a file named filepaths.json
containing a dictionary as a json file as follows:
{
"DATA": "/absolute/path/to/directory/where/user/uploads/will/be/processed",
"PASSWORD": "/absolute/path/to/text/file/containing/the/GMail/password",
"URLBASE": "http://base.url.on.this.machine",
"GOOGLESPEECH": "/absolute/path/to/googleprivatekeyjson",
"AZURE_API_KEY": "/absolute/path/to/azure-api-key.txt"
}
Do not push filepaths.json
to the repo, since it is dependent on the local environment.
Lighttpd does not automatically recompile the code after changes (unlike Apache), and needs to be manually restarted like so:
killall lighttpd
/etc/init.d/lighttpd start
This is only relevant for the production server.