ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

audio_common - sound_play error "playbin" not found

asked 2014-02-28 00:10:22 -0500

updated 2014-02-28 05:05:47 -0500

ahendrix gravatar image

I try to make text to speech work on the raspberry.

I use groovy and after copying the "sound_play" folder from the "audio_common" package from github and using catkin_make, it basically works. But when sending the command "rosrun sound_play 'text' " I get the following error from

[INFO] [WallTime: 1393587210.981293] sound_play node is ready to play sound
[ERROR] [WallTime: 1393587241.765914] Exception in callback: playbin
[INFO] [WallTime: 1393587241.789185] Traceback (most recent call last):
  File "/home/pi/ros/src/sound_play/scripts/", line 217, in callback
    self.voicesounds[data.arg] = soundtype(wavfilename)
  File "/home/pi/ros/src/sound_play/scripts/", line 80, in __init__
    self.sound = gst.element_factory_make("playbin","player")
ElementNotFoundError: playbin

Can anyone help me in solving this problem?

Background Info: Same problem is reported here: Seems that the programmers from PR2 also had the same error but did not poste how to solve it: Note: I use the "hydro" version of sound_play, as groovy version is not working due to a bug (see ).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-28 05:09:22 -0500

ahendrix gravatar image

If my memory is correct, this is happening because you don't have the proper gstreamer plugins installed.

Can you confirm that you have the libgstreamer0.10-0 libgstreamer-plugins-base0.10-0 gstreamer0.10-plugins-ugly gstreamer0.10-plugins-good and python-gst packages installed?

edit flag offensive delete link more


Thanks for your quick support! I have newer versions of the plugins installed, however some dependency problems in general... I'm just trying to set up raspbian and ros completely new and will use the old 0.10 versions, hope it will work then, I will report here.

Johannes Jaegers gravatar image Johannes Jaegers  ( 2014-02-28 18:06:34 -0500 )edit

My observation has been that the 1.0 and 0.10 versions of the gstreamer plugins can be installed side-by-side without too much trouble, and they're packaged with the major version number in the package name to facilitate this.

ahendrix gravatar image ahendrix  ( 2014-02-28 18:15:04 -0500 )edit

After re-installing raspbian & ros & all needed packages it's working now :-)! Thanks for your help!!

Johannes Jaegers gravatar image Johannes Jaegers  ( 2014-03-01 23:41:08 -0500 )edit

Question Tools

1 follower


Asked: 2014-02-28 00:10:22 -0500

Seen: 823 times

Last updated: Feb 28 '14