安裝語音識別系統主要是爲了在tutrlebot上應用, 所以先安裝ROS:
教程: http://www.cnblogs.com/qixianyu/p/6590917.html
http://www.cnblogs.com/liu-fa/p/5779206.html
接下來安裝CMUsphinx:
步驟:
1. 點擊官網下面的鏈接下載: https://cmusphinx.github.io/wiki/download/
-
Pocketsphinx — recognizer library written in C.
-
Sphinxtrain — acoustic model training tools
-
Sphinxbase — support library required by Pocketsphinx and Sphinxtrain
-
Sphinx4 — adjustable, modifiable recognizer written in Java
在自己打算安裝的目錄裏,解壓全部下載的包,確認 sphinxbase-X.x 和 pocketsphinx-X.x 是同一個版本。
安裝依賴項:
gcc, automake, autoconf, libtool, bison, swig at least version 2.0, python development package, pulseaudio development package
進入sphinxbase所在文件夾:
%cd
sphinxbase-5prealpha
% ./autogen.sh
% ./configure
% make
%sudo make install
設置路徑:
export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
進入pocketsphinx所在文件夾:
% ./autogen.sh
% ./configure
% make
% make install
3. test安裝時否成功
新終端:
%pocketsphinx_continuous -inmic yes
如報錯:
If you get an error such as:error while loading shared libraries: libpocketsphinx.so.3
, you may want to check your linker configuration with LD_LIBRARY_PATH environment variable
described above.
未出錯則安裝成功。