- Make sure that you have brew installed:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install python2 if it is not already installed:
brew install python2
- Use pip to install the requirements:
sudo pip2 install --upgrade setuptools
sudo pip2 install -r jasper/client/requirements.txt
- Install
portaudio
andpyaudio
brew install portaudio
sudo pip2 install pyaudio
- Now you may go on to configure jasper
-
Install CMUCLMTK
- If necessary install svn (mine was not a recent enough version)
brew install svn
- Install autoconf and libtool
brew install automake brew install libtool
- Install CMUCLMTK
svn co https://svn.code.sf.net/p/cmusphinx/code/trunk/cmuclmtk/ cd cmuclmtk/ ./autogen.sh && make && sudo make install cd ..
-
Install pocket sphynx
brew install cmu-pocketsphinx
-
Install phonetisaurus
-
install openfst
brew install https://raw.githubusercontent.com/Homebrew/homebrew-science/08b575e5b63a15489eb2aa91e4282ac574eefedb/openfst.rb
-
Download the tarball
wget https://www.dropbox.com/s/1bgavg07qx8fe5w/phonetisaurus-googlecode-archive.tgz
-
Untar it
tar -xf phonetisaurus-googlecode-archive.tgz
-
Enter the directory and untar
g2p2rnn
cd phonetisaurus-googlecode-archive/downloads tar -xf g2p2rnn.tgz
-
Enter that directory and delete the make file
cd g2p2rnn rm Makefile
-
Grab an updated make file for OS X
wget https://raw.githubusercontent.com/pudility/jasper-osx/master/resources/Makefile
-
make and copy to
/usr/local/bin
sudo make sudo cp phonetisaurus-g2p /usr/local/bin/phonetisaurus-g2p
-
-
Build the model
wget https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz
tar -xf g014b2b.tgz
cd g014b2b/
./compile-fst.sh
cd ..
mv g014b2b ~/phonetisaurus
- modify
g2g.py
to work with our version ofphonetisaurus-g2p
cd client
rm g2g.py
wget https://raw.githubusercontent.com/pudility/jasper-osx/master/resources/g2p.py