当前位置:网站首页>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')
边栏推荐
- Answer to "software testing" exercise: Chapter 1
- 162. Find peak - binary search
- 系统设计学习(一)Design Pastebin.com (or Bit.ly)
- Introduction and use of redis
- 闇の連鎖(LCA+树上差分)
- A brief introduction to the database of tyut Taiyuan University of technology in previous years
- All in one 1405: sum and product of prime numbers
- TYUT太原理工大学2022软工导论简答题
- TYUT太原理工大学2022数据库之关系代数小题
- Usage differences between isempty and isblank
猜你喜欢

Introduction and use of redis

2022国赛Re1 baby_tree

C code implementation of robust estimation in rtklib's pntpos function (standard single point positioning spp)

E-R graph to relational model of the 2022 database of tyut Taiyuan University of Technology

3月15号 Go 1.18 正式版发布 了解最新特色以及使用方法

继承和多态(下)

Inheritance and polymorphism (Part 2)

Alibaba cloud side: underlying details in concurrent scenarios - pseudo sharing

On March 15, the official version of go 1.18 was released to learn about the latest features and usage

Differences and application scenarios between MySQL index clock B-tree, b+tree and hash indexes
随机推荐
Music playback (toggle & playerprefs)
【快趁你舍友打游戏,来看道题吧】
错误: 找不到符号
121 distributed interview questions and answers
面渣逆袭:Redis连环五十二问,三万字+八十图详解。
Rt-ppp test using rtknavi
What are the advantages of using SQL in Excel VBA
[GNSS] robust estimation (robust estimation) principle and program implementation
Alibaba cloud microservices (III) sentinel open source flow control fuse degradation component
分支语句和循环语句
TYUT太原理工大学2022数据库大题之数据库操作
2年经验总结,告诉你如何做好项目管理
初识C语言(上)
雇佣收银员【差分约束】
[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal
继承和多态(下)
阿里云微服务(四) Service Mesh综述以及实例Istio
TYUT太原理工大学2022软工导论考试题型大纲
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
System design learning (I) design pastebin com (or Bit.ly)