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
You can usually install Opengrm with apt-get install libngram-tools
Pocketsphinx is installed using pip
and Phonetisaurus is included in the pre-built wheel.
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 902ec2fcc84f47091fff0d544073e125f290f3732736376d03f88bd789fb848f |
|
MD5 | 299acd3b93d8218eea06f77d6d773299 |
|
BLAKE2b-256 | b99224494459c689c7fcf54c1d73886690d923ab7fae92269643654cafabcc4a |