ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I ran into this same problem. As mentioned above, there seems to be a bug in say.py which is part of sound_play. If you want to temporarily get around this bug while they fix it, you can edit say.py replacing these two lines
print 'Volume: %s' % volume soundhandle.say(s, voice, volume)
with
#print 'Volume: %s' % volume soundhandle.say(s, voice)
This simply comments out the printing of the volume and does not pass it to soundhandle.say() which only expects the two parameters in the current version.
It is generally not a good idea to modify code in /opt/ros/indigo/lib/sound_play directly, but I did anyway to avoid moving all of sound_play to a work space. I had to chmod the file permissions which restrict permissions in this folder, but thought it was OK since I want later updates to overwrite this fix.