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

Revision history [back]

I could not find any message which sound_play package publishes to inform about the state of the system(started, playing or stopped).
But since you are using pocketsphinx, what you could do as a workaround is this:
When you send the text message to sound_play, publish it on a topic and have pocketsphinx subscribe to it.
Whenever pocketsphinx gets data from this node, it stops processing the audio. As soon as it hears silence for few seconds, it starts processing again.