Robot Operating System Ros Tutorial (10) Speech control

Source: Internet
Author: User
Tags svn

Now that speech recognition is hot on PCs and Smartphones, Ros is at the forefront of technology and certainly not missing out on such a handsome technology. Ros uses code from the CMU Sphinx and Festival Open source projects, issuing independent speech recognition packs, and converting the identified voice to text, and then allowing the robot to intelligently process and speak.

First, speech recognition package

1, installation

Installation is simple, you can use the Ubuntu command directly, install the dependent library first:

$ 

sudo apt-get install gstreamer0.10-pocketsphinx  
$ sudo apt-get install Ros-fuerte-audio-common  
$ sudo Apt-get Install Libasound2

Then to install the Ros pack:

$ svn Checkout 

http://albany-ros-pkg.googlecode.com/svn/trunk/rharmony  
$ rosmake Pocketsphinx

One of the core files is the nodes folder under the recognizer.py file. This file collects voice information through the microphone, and then calls the speech recognition library for recognition to generate text messages, which can be subscribed to by the other nodes, and then processed by the/recognizer/output message.

2, testing

Once the installation is complete, we can run the test.

First, insert your microphone device and test the microphone for voice input in the system settings.

Then, run the test program in the package:

$ roslaunch Pocketsphinx Robocup.launch

At this point, you will see a large segment of information in the terminal. Try to say some simple statements, of course, must be English, for example: Bring Me the glass,come with me to see if it can be identified.

"Ros by Example" This book has been written in the test is very accurate, but I am in the test feel very inaccurate recognition, may be my English is too bad.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.