How to use sound_play to speak messages published to a topic?

asked 2022-09-03 14:31:53 -0500

0

I am trying to use ROS sound_play package to speak out loud my messages (which is in string format) that I have published to a particular topic.

So far, I am able to print out the messages onto my ROS terminal using the command $rostopic echo / , but I want my machine to concurrently SPEAK these exact messages that are printed out on my terminal.

I have also tried the command $rosrun sound_play say.py "" for my machine to speak the specific string text I input. My question is, how can I integrate sound_play to actually speak out the messages published to my topic that I have printed onto my terminal using the echo command?

Any help would be appreciated, thanks!

edit retag flag offensive close merge delete