Skip to content

MERLIN2-ARCH/text_to_speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTS (Text To Speech)

TTS for ROS 2 with several tools:

  • espeak
  • speech-dispatcher
  • festival
  • gTTS
  • mpg321

Installation

# dependencies
$ sudo apt install espeak -y
$ sudo apt install speech-dispatcher -y
$ sudo apt install festival festival-doc festvox-kdlpc16k festvox-ellpc11k festvox-italp16k festvox-itapc16k -y
$ sudo pip3 install gTTS
$ sudo apt install mpg321 -y

# clone
$ cd ~/ros2_ws/src
$ git clone https://github.com/MERLIN2-ARCH/text_to_speech.git
$ git clone https://github.com/uleroboticsgroup/simple_node.git 

# colcon
$ cd ~/ros2_ws
$ colcon build

Usage

Launch

$ ros2 launch text_to_speech text_to_speech.launch.py

Shell Example

$ ros2 action send_goal /text_to_speech/tts text_to_speech_msgs/action/TTS "{'text': 'Hello world', 'config': {'volume': '0.5', 'rate': '100', 'language': 'en', 'gender': 'm', 'tool': '1'}}"

Releases

No releases published

Packages

No packages published