Documentation Status

cob_driver: cob_base_drive_chain | cob_camera_sensors | cob_canopen_motor | cob_generic_can | cob_head_axis | cob_hokuyo | cob_hwboard | cob_light | cob_phidgets | cob_relayboard | cob_sick_lms1xx | cob_sick_s300 | cob_sound | cob_undercarriage_ctrl | cob_utilities | cob_voltage_control

Package Summary

Released Continuous integration Documented

This package implements a sound play module using text2wave and aplay through python.

  • Maintainer status: developed
  • Maintainer: Nadia Hammoudeh Garcia <nhg AT ipa.fhg DOT de>
  • Author: Florian Weisshardt
  • License: LGPL
  • Source: git https://github.com/ipa320/cob_driver.git (branch: hydro_release_candidate)
Cannot load information on name: cob_sound, distro: jade, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: cob_sound, distro: lunar, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.

You can use TTS speach output by using the cob_script_server.

Starting Sound

NOTE: If you login remotely via ssh, login without -X.

roslaunch cob_sound sound.launch

Usage

You can either call and action or a service, e.g.

rosservice call /sound/say "Hello, my name is Care-O-bot."

You can mute and unmute the output

rosservice call /sound/mute
rosservice call /sound/unmute

Using festival

By default festival is used.

Using cepstral

For cepstral you need to buy a license key.

For using cepstral instead of festival please set the mode to cepstral with

rosparam set /sound/mode cepstral

Installing cepstral vices and license

Download and install voice. Adopted from this tutorial.

wget http://www.cepstral.com/downloads/installers/linux32/previous/Cepstral_David_i386-linux_5.1.0.tar.gz
wget http://www.cepstral.com/downloads/installers/linux64/previous/Cepstral_David_x86-64-linux_5.1.0.tar.gz
  • e.g. Linux 32bit or 64bit, German, Matthias:

wget http://www.cepstral.com/downloads/installers/linux32/previous/Cepstral_Matthias_i386-linux_5.1.0.tar.gz
wget http://www.cepstral.com/downloads/installers/linux64/previous/Cepstral_Matthias_x86-64-linux_5.1.0.tar.gz
  • unpack and install

tar xzvf Cepstral_David_x86-64-linux_5.1.0.tar.gz
cd Cepstral_David_x86-64-linux_5.1.0
sudo ./install.sh
sudo touch /etc/ld.so.conf.d/cepstral.conf
sudo sh -c 'echo "/opt/swift/lib" > /etc/ld.so.conf.d/cepstral.conf'
sudo ldconfig

* apply fix for Ubuntu > 12.04

roscd cob_sound
sudo ./fix_swift_for_precise.sh

if that fix doesn't help, try to install alsa-oss

sudo apt-get install alsa-oss

and modify /usr/local/bin/swift_fix to contain

if test -x /usr/bin/padsp ; then  exec aoss /opt/swift/bin/swift "$@" ; else  exec /opt/swift/bin/swift "$@" ; fi

* Register voice with license (you need to buy a license from http://www.cepstral.com, for IPA robots ask UHR or FMW for license key)

sudo swift --reg-voice

Setting the sound volume

Either use alsamixer:

alsamixer

or use alsactl: For setting the sound to xx% use

amixer -c 1 set Speaker xx%

or

amixer -c 1 set PCM xx%

5% is a reasonable volume. To store the settings permanently, type

sudo alsactl store

Wiki: cob_sound (last edited 2016-04-08 06:32:50 by FlorianWeisshardt)