No project description provided
Project description
Rhasspy ASR Pocketsphinx
Automated speech recognition in Rhasspy voice assistant with Pocketsphinx.
Dependencies
rhasspy-asr-pocketsphinx
requires:
- Python 3.7
- Pocketsphinx
- Opengrm
- Phonetisaurus
See pre-built apps for pre-compiled binaries.
Pocketsphinx is installed using pip
from a fork of the Python library that removes PulseAudio.
Building From Source
rhasspy-asr-pocketsphinx
depends on the following programs that must be compiled:
Phonetisaurus
Make sure you have the necessary dependencies installed:
sudo apt-get install build-essential
First, download and build OpenFST 1.6.2
wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.2.tar.gz
tar -xvf openfst-1.6.2.tar.gz
cd openfst-1.6.2
./configure \
"--prefix=$(pwd)/build" \
--enable-static --enable-shared \
--enable-far --enable-ngram-fsts
make
make install
Use make -j 4
if you have multiple CPU cores. This will take a long time.
Next, download and extract Phonetisaurus:
wget -O phonetisaurus-master.tar.gz \
'https://github.com/AdolfVonKleist/Phonetisaurus/archive/master.tar.gz'
tar -xvf phonetisaurus-master.tar.gz
Finally, build Phonetisaurus (where /path/to/openfst
is the openfst-1.6.2
directory from above):
cd Phonetisaurus-master
./configure \
--with-openfst-includes=/path/to/openfst/build/include \
--with-openfst-libs=/path/to/openfst/build/lib
make
make install
Use make -j 4
if you have multiple CPU cores. This will take a long time.
You should now be able to run the phonetisaurus-align
program.
See docker-phonetisaurus for a Docker build script.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for rhasspy-asr-pocketsphinx-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a96e981f22b24fd782cb76fb2bbbf70672f1107cc08c3301044019b69bc4cbc |
|
MD5 | 23590c62cb67119b17d8a69304a2f347 |
|
BLAKE2b-256 | 558a95d27f026f85ab1145719c923bcca3703d1028c159ff74ac349f0cb99d89 |