当前位置:网站首页>ROS machine voice
ROS machine voice
2022-07-06 13:15:00 【melodic18】
Speech recognition function package :pocketsphinx
because pocketsphinx Only to Ubuntu14.04,ROS Kinetic I won't support it sudo apt-get install ros-kinetic-pocketsphinx, So in kinetic The installation is a little troublesome .
Switch to a bash:
exec bash
Switch to a zsh:
exec zsh
1, Installation dependency ros-kinetic-audio-common
sudo apt-get install ros-kinetic-audio-common
2, Installation dependency libasound2
sudo apt-get install libasound2
3, Installation dependency libgstreamer0.10
zsh Unable to run , however bash Sure , Here we are going to bash Add to zsh in
sudo apt-get install gstreamer0.10-*
4, Installation dependency python-gst0.10
sudo apt-get install python-gst0.10
5, Install Feature Pack libsphinxbase1_0.8-6
Download link :https://packages.debian.org/jessie/libpocketsphinx1
sudo dpkg -i libpocketsphinx1_0.8-5_amd64.deb
6, Install Feature Pack libpocketsphinx1_0.8-5
Download link :https://packages.debian.org/jessie/libpocketsphinx1
sudo dpkg -i libpocketsphinx1_0.8-5_amd64.deb
7, Install Feature Pack gstreamer0.10-pocketsphinx
Download link :https://packages.debian.org/jessie/gstreamer0.10-pocketsphinx
sudo dpkg -i gstreamer0.10-pocketsphinx_0.8-5_amd64.deb
8, Enter the workspace Directory , download pocketsphinx The source code of the function package and compile
cd ~/catkin_ws/src
git clone https://github.com/mikeferguson/pocketsphinx
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
9, Download and install the English voice pack pocketsphinx-hmm-en-tidigits_0.8-5
Download link :https://packages.debian.org/jessie/pocketsphinx-hmm-en-tidigits
sudo dpkg -i pocketsphinx-hmm-en-tidigits_0.8-5_all.deb
10, stay pocketsphinx Create a model Catalog , Store the unzipped voice model file
cd ~/catkin_ws/src/pocketsphinx
mkdir model
sudo cp /usr/share/pocketsphinx/model/* ~/catkin_ws/src/pocketsphinx/model -r
11, modify recognizer.py file cd ~/catkin_ws/src/pocketsphinx/nodes
(1) Comment out self.asr.set_property(‘configured’, True)
(2) add to lm,dict,hmm Support English recognition ( If it is another language, you can change to another path )
self.asr.set_property('lm', '/usr/share/pocketsphinx/model/lm/en/tidigits.DMP')
self.asr.set_property('dict', '/usr/share/pocketsphinx/model/lm/en/tidigits.dic')
self.asr.set_property('hmm', '/usr/share/pocketsphinx/model/hmm/en/tidigits')
边栏推荐
- [算法] 剑指offer2 golang 面试题1:整数除法
- 分支语句和循环语句
- 121道分布式面试题和答案
- [rtklib] preliminary practice of using robust adaptive Kalman filter under RTK
- 2年经验总结,告诉你如何做好项目管理
- MySQL backup -- common errors in xtrabackup backup
- MySQL 三万字精华总结 + 面试100 问,吊打面试官绰绰有余(收藏系列
- 十分钟彻底掌握缓存击穿、缓存穿透、缓存雪崩
- Wechat applet development experience
- Error: symbol not found
猜你喜欢
121道分布式面试题和答案
[算法] 剑指offer2 golang 面试题1:整数除法
Wechat applet development experience
TYUT太原理工大学2022数据库大题之E-R图转关系模式
Detailed explanation of balanced binary tree is easy to understand
TYUT太原理工大学2022软工导论大题汇总
阿里云微服务(三)Sentinel开源流控熔断降级组件
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
Basic DOS commands
How to ensure data consistency between MySQL and redis?
随机推荐
Introduction and use of redis
十分鐘徹底掌握緩存擊穿、緩存穿透、緩存雪崩
记录:动态Web项目servlet访问数据库404错误之解决
Record: I accidentally wrote a recursion next time
Rt-ppp test using rtknavi
Design a key value cache to save the results of the most recent Web server queries
[GNSS] robust estimation (robust estimation) principle and program implementation
[rtklib 2.4.3 B34] version update introduction I
Experience summary of autumn recruitment of state-owned enterprises
Novatel board oem617d configuration step record
What are the advantages of using SQL in Excel VBA
162. Find peak - binary search
How do architects draw system architecture blueprints?
MySQL backup -- common errors in xtrabackup backup
2-year experience summary, tell you how to do a good job in project management
[untitled]
Introduction pointer notes
Heap sort [handwritten small root heap]
Several high-frequency JVM interview questions
Alibaba cloud side: underlying details in concurrent scenarios - pseudo sharing