https://github.com/bob-ros2/rosspeaks
A simple generic TTS speak simulator ROS Node. This is a MIRRORED REPOSITORY Refer to the GitLab page for the origin.
https://github.com/bob-ros2/rosspeaks
node ros ros2 simulator speach
Last synced: about 1 month ago
JSON representation
A simple generic TTS speak simulator ROS Node. This is a MIRRORED REPOSITORY Refer to the GitLab page for the origin.
- Host: GitHub
- URL: https://github.com/bob-ros2/rosspeaks
- Owner: bob-ros2
- License: apache-2.0
- Created: 2023-10-25T16:03:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T21:55:19.000Z (over 2 years ago)
- Last Synced: 2025-02-07T15:45:09.682Z (over 1 year ago)
- Topics: node, ros, ros2, simulator, speach
- Language: Python
- Homepage: https://gitlab.com/bob-ros2/rosspeaks
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RosSpeaks
A simple generic TTS speak simulator ROS Node. Other to be used Speech
engines can also be configured.
## Installation Prerequisites
One or both of these are pre installed
- espeak (default)
- spd-say
```bash
# installation
sudo apt-get update
# espeak
sudo apt-get install espeak
# spd-say
sudo apt-get install speech-dispatcher
```
## Setup Node ##
```bash
# run in your ros2_ws/src folder
git clone https://gitlab.com/bob-ros2/rosspeaks.git
cd ..
colcon build
. install/setup.bash
```
## ROS Node rosspeaks
### Usage
```bash
# start the node.
ros2 run rosspeaks speak.py
```
### Node Parameter
> ~pitch (int, default: 60)\
Pitch of voice.
> ~rate (int, default: 90)\
Rate of voice.
> ~lang (string, default: "en+f3")\
Language type. The value format depends on the used speech engine.
> ~level (int, default: 70)\
Level of voice.
> ~suppress (Bool, default: False)\
Possibility to suppress the speak execution. If True all new
messages are discarded until it's set back to False.
> ~exec (string, default: "espeak")\
To be used speach executable. Integrated speech engines
are 'espeak' and 'spdsay'.\
If providing a custom executable it will be
called in the followng way:\
script \ \ \ \ \
### Subscribed Topics
> ~speak (std_msgs/String)\
Text to speak. For better control use the action if a finished
feedback is needed or use the published speaking topic.
### Published Topics
> ~speaking (std_msgs/Bool)\
Flag which indicates if speaking is ongoing. The message is letched to see
the last state at any time.
### Actions
> ~speak\
Perfoms speaking. The action ends when speaking has finished.
See [action/Speaking.action](action/Speaking.action) for details.
## Dynamic Reconfigure Parameter
> ~pitch\
~rate\
~lang\
~level\
~suppress\
~exec
## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.\
Please make sure to update tests as appropriate.
## License
[Apache2.0](https://www.apache.org/licenses/LICENSE-2.0)