Chinaunix首页 | 论坛 | 博客
  • 博客访问: 198333
  • 博文数量: 33
  • 博客积分: 995
  • 博客等级: 准尉
  • 技术积分: 335
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-13 21:36
文章分类

全部博文(33)

文章存档

2014年(9)

2011年(1)

2010年(2)

2009年(7)

2008年(8)

2007年(3)

2006年(3)

我的朋友

分类: C/C++

2014-09-11 11:20:04


点击(此处)折叠或打开

  1. #!/bin/bash
  2. # see http://cmusphinx.sourceforge.net/wiki/tutorialam
  3. # see http://mnemonicplace.blogspot.de/2010/06/cmu-sphinx-error-wave2feat-error-while.html
  4.  
  5. sudo apt-get install build-essential autoconf libtool automake python-dev subversion bison vim
  6. export PATH=/usr/local/bin:/usr/local/libexec/sphinxtrain:$PATH
  7. export LD_LIBRARY_PATH=/usr/local/lib
  8. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
  9. mkdir ~/tutorial
  10. cd ~/tutorial
  11. svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase/
  12. cd sphinxbase
  13. ./autogen.sh
  14. ./configure
  15. make
  16. make check
  17. make install
  18.  
  19. cd src
  20. make
  21. make install
  22.  
  23. cd ~/tutorial
  24. svn co https://cmusphinx.svn.sourceforge.net:/svnroot/cmusphinx/trunk/SphinxTrain
  25. cd SphinxTrain
  26. ./autogen.sh
  27. ./configure
  28. make
  29. make check
  30. sudo make install
  31.  
  32. cd ~/tutorial
  33. svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinx3/
  34. cd sphinx3
  35. ./autogen.sh
  36. ./configure
  37. make
  38. make check
  39. sudo make install
  40.  
  41. #sudo su -c 'echo "/usr/local/lib" >> /etc/ld.so.conf'
  42.  
  43. cd ~/tutorial
  44. wget http://www.speech.cs.cmu.edu/databases/an4/an4_sphere.tar.gz
  45. tar -xzf an4_sphere.tar.gz
  46. #wget http://www.speech.cs.cmu.edu/databases/an4/an4_wav.tar.gz
  47.  
  48.  
  49. cd ~/tutorial/an4
  50. #scripts_pl/setup_tutorial.pl an4
  51. sphinxtrain -t an4 setup
  52. sed -i -e 's/$CFG_QUEUE_TYPE = "Queue";/$CFG_QUEUE_TYPE = "Queue::POSIX";/' etc/sphinx_train.cfg
  53. sphinxtrain run

阅读(802) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~