当前位置:网站首页>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')
边栏推荐
- Solution: warning:tensorflow:gradients do not exist for variables ['deny_1/kernel:0', 'deny_1/bias:0',
- 167. Sum of two numbers II - input ordered array - Double pointers
- 染色法判定二分图
- MySQL 三万字精华总结 + 面试100 问,吊打面试官绰绰有余(收藏系列
- 系统设计学习(一)Design Pastebin.com (or Bit.ly)
- Realization of the code for calculating the mean square error of GPS Height Fitting
- MySQL 30000 word essence summary + 100 interview questions, hanging the interviewer is more than enough (Collection Series
- String类
- 记录:动态Web项目servlet访问数据库404错误之解决
- Fairygui bar subfamily (scroll bar, slider, progress bar)
猜你喜欢
Alibaba cloud microservices (I) service registry Nacos, rest template and feign client
Inheritance and polymorphism (Part 2)
[算法] 剑指offer2 golang 面试题1:整数除法
What are the advantages of using SQL in Excel VBA
[algorithm] sword finger offer2 golang interview question 2: binary addition
Edit distance (multi-source BFS)
Counter attack of flour dregs: redis series 52 questions, 30000 words + 80 pictures in detail.
Wechat applet development experience
How to ensure data consistency between MySQL and redis?
闇の連鎖(LCA+树上差分)
随机推荐
View UI Plus 发布 1.2.0 版本,新增 Image、Skeleton、Typography组件
Introduction and use of redis
Interview Essentials: talk about the various implementations of distributed locks!
Realization of the code for calculating the mean square error of GPS Height Fitting
TYUT太原理工大学2022软工导论大题汇总
错误: 找不到符号
[algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array
Experience summary of autumn recruitment of state-owned enterprises
2022 National Games RE1 baby_ tree
165. Compare version number - string
[algorithm] sword finger offer2 golang interview question 9: subarray with product less than k
How to ensure data consistency between MySQL and redis?
Tyut outline of 2022 database examination of Taiyuan University of Technology
[GNSS] robust estimation (robust estimation) principle and program implementation
《软件测试》习题答案:第一章
TYUT太原理工大学2022软工导论考试题型大纲
Differences and application scenarios between MySQL index clock B-tree, b+tree and hash indexes
Common method signatures and meanings of Iterable, collection and list
Edit distance (multi-source BFS)
Implementation of Excel import and export functions