Change the Talk button to Interrupt while the robot is speaking.
Add a service call to the speak node to kill speaking in progress.
Sometimes the robot can get carried away on a long speech and it is desirable to interrupt. By changing the Talk button on the Android app to Interrupt, the user would have the ability to indicate that the robot should stop speaking. When the Interrupt button is pressed, it would make a ROS service call to the speak node to interrupt the speech. The service call would kill any active espeak process that was started by the node.
Change the Talk button to Interrupt while the robot is speaking.
Add a service call to the speak node to kill speaking in progress.
Sometimes the robot can get carried away on a long speech and it is desirable to interrupt. By changing the Talk button on the Android app to Interrupt, the user would have the ability to indicate that the robot should stop speaking. When the Interrupt button is pressed, it would make a ROS service call to the speak node to interrupt the speech. The service call would kill any active espeak process that was started by the node.