respeaker: ImportError: No module named sound_play.msg
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
Asked by MPR on 2021-10-30 15:12:25 UTC
Answers
Try:
rosdep install sound_play
rosmake sound_play
As per: https://github.com/furushchev/respeaker_ros/issues/21
For more info: https://github.com/furushchev/respeaker_ros#readme
Asked by osilva on 2021-10-30 17:56:56 UTC
Comments
after doing that i am getting the following issue [INFO] [1635665969.977078]: Speech detected for 2.152 seconds [ERROR] [1635665970.603895]: Failed to recognize:
Asked by MPR on 2021-10-31 02:40:40 UTC
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
Asked by osilva on 2021-10-31 06:17:46 UTC
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
.
Asked by gvdhoorn on 2021-10-31 06:50:36 UTC
Hi @gvdhoorn the reason I recommended this is as you can see in the repo those are the actions taken for the same error
Asked by osilva on 2021-10-31 08:04:59 UTC
There is one comment by one commenter on one issue.
Without any explanation as to why that should resolve the issues.
Asked by gvdhoorn on 2021-10-31 08:19:38 UTC
True. There is not much on the subject and it’s hard to reproduce
Asked by osilva on 2021-10-31 08:21:49 UTC
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.
Asked by gvdhoorn on 2021-10-31 08:28:08 UTC
Comments
Could you please explain how you installed
respeaker
on your system? Did you make sure to install all dependencies as well?Asked by gvdhoorn on 2021-10-31 07:43:53 UTC