This repository provides a set of ROS 2 packages to integrate piper TTS (Text-to-Speech) into ROS 2 using audio_common 4.0.6.
| ROS 2 Distro | Branch | Build status | Docker Image | Documentation |
|---|---|---|---|---|
| Humble | main |
|||
| Iron | main |
|||
| Jazzy | main |
|||
| Kilted | main |
|||
| Rolling | main |
To run piper_ros follow the next commands:
cd ~/ros2_ws/src
git clone https://github.com/mgonzs13/audio_common.git
git clone https://github.com/mgonzs13/piper_ros.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon buildYou can build the piper_ros docker:
docker build -t piper_ros .Then, you can run the docker container:
docker run -it --rm --device /dev/snd piper_rosros2 launch piper_bringup piper.launch.pyros2 action send_goal /say audio_common_msgs/action/TTS "{'text': 'Hello World from ros 2'}"ros2 launch piper_bringup piper.launch.py model_filename:="es/es_ES/carlfm/x_low/es_ES-carlfm-x_low.onnx"ros2 action send_goal /say audio_common_msgs/action/TTS "{'text': 'Hola Mundo desde ros 2'}"