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

respeaker: ImportError: No module named sound_play.msg

asked 2021-10-30 15:12:25 -0600

MPR gravatar image

updated 2022-03-08 06:59:28 -0600

lucasw gravatar image

I launched the respeaker using this command ''roslaunch respeaker_ros respeaker.launch'' this give me following error.WHat could be the reason? How to solve it?

process[speech_to_text-3]: started with pid [20804]
Traceback (most recent call last):
  File "/home/aimotion/catkin_ws/src/respeaker_ros/scripts/speech_to_text.py", line 11, in <module>
    from sound_play.msg import SoundRequest, SoundRequestAction, SoundRequestGoal
ImportError: No module named sound_play.msg
[speech_to_text-3] process has died [pid 20804, exit code 1, cmd /home/aimotion/catkin_ws/devel/lib/respeaker_ros/speech_to_text.py audio:=speech_audio __name:=speech_to_text __log:=/home/aimotion/.ros/log/1289b5c2-39b0-11ec-9c03-28d0ea7f74b1/speech_to_text-3.log].
log file: /home/aimotion/.ros/log/1289b5c2-39b0-11ec-9c03-28d0ea7f74b1/speech_to_text-3*.log
edit retag flag offensive close merge delete

Comments

Could you please explain how you installed respeaker on your system? Did you make sure to install all dependencies as well?

gvdhoorn gravatar image gvdhoorn  ( 2021-10-31 07:43:53 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-10-30 17:56:56 -0600

osilva gravatar image

Try:

rosdep install sound_play
rosmake sound_play

As per: https://github.com/furushchev/respeak...

For more info: https://github.com/furushchev/respeak...

edit flag offensive delete link more

Comments

after doing that i am getting the following issue

MPR gravatar image MPR  ( 2021-10-31 02:40:40 -0600 )edit

Hi @MPR I can’t see the issue but if it’s different. Let’s start a new question and if you are ok accept the answe

osilva gravatar image osilva  ( 2021-10-31 06:17:46 -0600 )edit

Both respeak and sound_play are Catkin packages. In addition, sound_play has been released for Melodic (see status_page/ros_melodic_default.html?q=sound_pl) and should be available via apt for installation.

Also note: rosdep install X will only install the dependencies of X, it will not install X itself.

@osilva: why do you recommend to build sound_play from source, and why do you recommend to use rosmake to do so? Catkin packages cannot be built using rosmake.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-31 06:50:36 -0600 )edit

Hi @gvdhoorn the reason I recommended this is as you can see in the repo those are the actions taken for the same error

osilva gravatar image osilva  ( 2021-10-31 08:04:59 -0600 )edit

There is one comment by one commenter on one issue.

Without any explanation as to why that should resolve the issues.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-31 08:19:38 -0600 )edit

True. There is not much on the subject and it’s hard to reproduce

osilva gravatar image osilva  ( 2021-10-31 08:21:49 -0600 )edit
1

It's possible the OP has only cloned the respeak repository into his/her workspace, built it and then expects it to work. If the dependencies are not present (such as sound_play), things will not work.

But until we have more information, this is all speculation.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-31 08:28:08 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2021-10-30 15:12:25 -0600

Seen: 111 times

Last updated: Oct 31 '21