Ask Your Question
0

audio_common - sound_play error "playbin" not found

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

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

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 say.py 'text' " I get the following error from soundplay_node.py:

[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/soundplay_node.py", line 217, in callback
    self.voicesounds[data.arg] = soundtype(wavfilename)
  File "/home/pi/ros/src/sound_play/scripts/soundplay_node.py", 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: https://code.ros.org/trac/ros-pkg/tic... Seems that the programmers from PR2 also had the same error but did not poste how to solve it: https://github.com/ros-drivers/audio_... Note: I use the "hydro" version of sound_play, as groovy version is not working due to a bug (see https://github.com/ros-drivers/audio_... ).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

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 imageJohannes Jaegers ( 2014-02-28 18:06:34 -0600 )edit
1

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 imageahendrix ( 2014-02-28 18:15:04 -0600 )edit

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

Johannes Jaegers gravatar imageJohannes Jaegers ( 2014-03-01 23:41:08 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 652 times

Last updated: Feb 28 '14