当前位置:网站首页>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')
边栏推荐
- 继承和多态(上)
- TYUT太原理工大学2022“mao gai”必背
- Alibaba cloud microservices (II) distributed service configuration center and Nacos usage scenarios and implementation introduction
- [algorithm] sword finger offer2 golang interview question 2: binary addition
- All in one 1405: sum and product of prime numbers
- 国企秋招经验总结
- Rt-ppp test using rtknavi
- TYUT太原理工大学2022数据库大题之概念模型设计
- [algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
- TYUT太原理工大学往年数据库简述题
猜你喜欢

The earth revolves around the sun

继承和多态(下)

编辑距离(多源BFS)

Inheritance and polymorphism (Part 2)
![[algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array](/img/d5/4bda133498f71ae9fd7a64c6cba8f0.png)
[algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array

XV Function definition and call

String类

《软件测试》习题答案:第一章
![[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once](/img/f7/23ffc81ec8e9161c15d863c1a67916.png)
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once

Basic DOS commands
随机推荐
4.30动态内存分配笔记
TYUT太原理工大学2022数据库大题之概念模型设计
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
面渣逆袭:Redis连环五十二问,三万字+八十图详解。
String class
2022 National Games RE1 baby_ tree
Tyut Taiyuan University of technology 2022 introduction to software engineering summary
Solution: warning:tensorflow:gradients do not exist for variables ['deny_1/kernel:0', 'deny_1/bias:0',
Dark chain lock (lca+ difference on tree)
165. Compare version number - string
IPv6 experiment
错误:排序与角标越界
Alibaba cloud microservices (II) distributed service configuration center and Nacos usage scenarios and implementation introduction
View UI Plus 发布 1.1.0 版本,支持 SSR、支持 Nuxt、增加 TS 声明文件
【话题终结者】
Interview Essentials: talk about the various implementations of distributed locks!
Design a key value cache to save the results of the most recent Web server queries
Alibaba cloud side: underlying details in concurrent scenarios - pseudo sharing
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
First acquaintance with C language (Part 2)