How to use sound_play to speak messages published to a topic?
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 soundplay say.py "" for my machine to speak the specific string text I input. My question is, how can I integrate soundplay 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!
Asked by bosonphoton on 2022-09-03 14:31:53 UTC
Comments