Git Product home page Git Product logo

rosspeaks's Introduction

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
# installation
sudo apt-get update
# espeak
sudo apt-get install espeak
# spd-say
sudo apt-get install speech-dispatcher

Setup Node

# 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

# 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 <pitch> <rate> <lang> <level> <text>

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 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

rosspeaks's People

Contributors

bob-ros2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.