The voice_manager package is designed for managing text-to-speech interactions in the KUAMS system. It subscribes to an ID and publishes the corresponding text for speech output.
- Subscribes to
speak_text_idtopic for receiving an ID. - Publishes corresponding text to
speaktopic for speech synthesis. - Compatible with the
raspicat_speak2package for seamless text-to-speech functionality.
- Operating System: Ubuntu 22.04
- ROS2 Distribution: Humble Hawksbill
- Dependencies:
- Clone the repository into your ROS2 workspace:
cd ~/your_ros2_workspace/src git clone https://github.com/kzm784/voice_manager
- Build the workspace:
cd ~/your_ros2_workspace colcon build --packages-select voice_manager source install/setup.bash
Run the voice_manager node using the launch file:
ros2 launch voice_manager voice_manager.launch.pyThe package uses a YAML file for configuration. Ensure that the path to your ID-to-text CSV file is correctly specified in config/config_voice_manager.yaml:
id_to_text_csv: "/path/to/your/id_to_text.csv"- Subscribed Topics:
/speak_text_id(std_msgs/msg/Int32): Accepts an ID to determine the text to be spoken.
- Published Topics:
/speak(std_msgs/msg/String): Publishes the text corresponding to the ID.
Publish an ID to the speak_text_id topic:
ros2 topic pub -1 /speak_text_id std_msgs/msg/Int32 "{data: 1}"The corresponding text will be published on the speak topic.
- Ensure that the
raspicat_speak2package is installed and operational for speech synthesis. - Verify the correctness of your
id_to_text.csvfile and its path in the YAML configuration.