Seeing a fun thing, Baidu's speech recognition, you can DIY some small things yourself.
Reference: http://www.rosclub.cn/post-1032.html
1. There is no problem with the previous download and installation, so skip it and ignore it.
2. Test After
downloading : CMakeList.txt and packge.xml need to be modified, otherwise the dependencies cannot be satisfied. What dependencies can go to understand the ROS file system.
All baidu_speech in it are changed to simple_voice.
Following is the CmakeList.txt file
cmake_minimum_required(VERSION 2.8.3)
project(simple_voice)
find_package(catkin REQUIRED COMPONENTS
rospy std_msgs message_generation
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
TTS_message.msg
# Message2.msg
)
##Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs # Or other packages containing msgs
)
catkin_package(
# INCLUDE_DIRS include
LIBRARIES simple_voice
CATKIN_DEPENDS rospy message_runtime std_msgs
#DEPENDS system_lib
)
include_directories(
${catkin_INCLUDE_DIRS}
)
Following is the packge.xml file
<?xml version="1.0"?>
<package format="2">
<name>simple_voice</name>
<version>0.2.1</version>
<description>The simple_voice package</description>
<maintainer email="[email protected]">jcl</maintainer>
<license>TODO</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>rospy</build_depend>
<exec_depend>rospy</exec_depend>
<build_depend>message_generation</build_depend>
<exec_depend>message_runtime</exec_depend>
<build_depend>std_msgs</build_depend>
<exec_depend>std_msgs</exec_depend>
<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->
</export>
</package>
In fact, I am a function package created by catkin_create_pkg simple_voice. Copy the new things into it and then modify it to compile well. .
catkin_make –pkg simple_voice compiles the package
roslaunch simple_voice simple_speaker.launch
still has problems running, the problem is as follows, showing import requests error.
Solution: http://blog.51cto.com/9455163/1825839
The problem is solved
3.
4.