This repository provides a set of ROS 2 packages to integrate piper TTS (Text-to-Speech) into ROS 2 using audio_common 4.0.4.
ROS 2 Distro | Branch | Build status | Docker Image | Documentation |
---|---|---|---|---|
Humble | main |
|||
Iron | main |
|||
Jazzy | 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
pip3 install -r piper_ros/requirements.txt
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build
You 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_ros
ros2 launch piper_bringup piper.launch.py
ros2 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'}"