tts package from tts repotts tts_interfaces |
|
Package Summary
Tags | No category tags. |
Version | 2.0.2 |
License | Apache License 2.0 |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/aws-robotics/tts-ros2.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-02-08 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- AWS RoboMaker
Authors
- AWS RoboMaker
- AWS RoboMaker
tts
Overview
The tts
ROS2 node enables a robot to speak with a human voice by providing a Text-To-Speech service.
Out of the box this package listens to a speech topic, submits text to the Amazon Polly cloud service to generate an audio stream file,
retrieves the audio stream from Amazon Polly, and plays the audio via the default output device.
The nodes can be configured to use different voices as well as custom lexicons and SSML tags which enable you to control aspects of speech,
such as pronunciation, volume, pitch, speed rate, etc. A sample ROS application with this node,
and more details on speech customization are available within the Amazon Polly documentation.
Amazon Polly Summary: Amazon Polly is a service that turns text into lifelike speech, allowing you to create applications that talk, and build entirely new categories of speech-enabled products. Amazon Polly is a Text-to-Speech service that uses advanced deep learning technologies to synthesize speech that sounds like a human voice. With dozens of lifelike voices across a variety of languages, you can select the ideal voice and build speech-enabled applications that work in many different countries.
Features in Active Development:
- Offline TTS
License
The source code is released under an Apache 2.0.
Author: AWS RoboMaker
Affiliation: Amazon Web Services (AWS)
Maintainer: AWS RoboMaker, ros-contributions@amazon.com
Supported ROS Distributions
- Crystal
Installation
AWS Credentials
You will need to create an AWS Account and configure the credentials to be able to communicate with AWS services. You may find AWS Configuration and Credential Files helpful.
This node will require the following AWS account IAM role permissions:
polly:SynthesizeSpeech
Build and Test
Build from Source
Create a ROS workspace and a source directory
mkdir -p ~/ros-workspace/src
To install from source, clone the latest version from master branch and compile the package
-
Clone the package into the source directory
cd ~/ros-workspace/src git clone https://github.com/aws-robotics/tts-ros2.git
-
Install dependencies
cd ~/ros-workspace && sudo apt-get update rosdep install --from-paths src --ignore-src -r -y
-
Install the packages
cd ~/ros-workspace && colcon build
-
Configure ROS library Path
source ~/ros-workspace/install/local_setup.bash
-
Build and run the unit tests
colcon test --packages-select tts && colcon test-result --all
Test on Containers/Virtual Machines
Even if your container or virtual machine does not have audio device, you can still test TTS by leveraging an audio server.
The following is an example setup on a MacBook with PulseAudio as the audio server. If you are new to PulseAudio, you may want to read the PulseAudio Documentation.
Step 1: Start PulseAudio on your laptop
After installation, start the audio server with module-native-protocol-tcp loaded:
pulseaudio --load=module-native-protocol-tcp --exit-idle-time=-1 --log-target=stderr -v
Note the extra arguments -v
and --log-target
are used for easier troubleshooting.
Step 2: Run TTS nodes in container
In your container, make sure you set the right environment variables.
For example, you can start the container using docker run -it -e PULSE_SERVER=docker.for.mac.localhost ubuntu:16.04
.
Then you will be able to run ROS nodes in the container and hear the audio from your laptop speakers.
Troubleshooting
If your laptop has multiple audio output devices, make sure the right one has the right volume. This command will give you a list of output devices and tell you which one has been selected:
pacmd list-sinks | grep -E '(index:|name:|product.name)'
Launch Files
An example launch file called tts.launch.py
is provided.
Usage
Run the node
-
Plain text
ros2 launch tts tts.launch.py
ros2 run tts voicer 'Hello World'
-
SSML
ros2 launch tts tts.launch.py
ros2 run tts voicer '<speak>Mary has a <amazon:effect name="whispered">little lamb.</amazon:effect></speak>' '{"text_type":"ssml"}'
Nodes
polly_node
Polly node is the engine for the synthesizing job. It provides user-friendly yet powerful APIs so a user doesn’t have to deal with technical details of AWS service calls.
Services
-
polly
Call the service to use Amazon Polly to synthesize the audio.
synthesizer_node
Services
-
synthesizer
Call the service to synthesize.
Parameters
-
text (string)
The text to be synthesized.
-
metadata (string, JSON format)
Optional, for user to have control over how synthesis happens.
Bugs & Feature Requests
Please contact the team directly if you would like to request a feature.
Please report bugs in Issue Tracker.
Changelog for package tts
2.0.1 (2019-09-20)
- Fix voicer and bump version to 2.0.1
(#9)
- Fix voicer and bump version to 2.0.1
- Bump version of tts_interfaces to 2.0.1
- Increase wait_for_service timeout in tts_integration.py
- Contributors: AAlon
2.0.0 (2019-09-06)
- Delete CHANGELOG.rst
- Bump version to 2.0.0 and add changelog
- Add launch dependencies
- Rename python-boto3 to python3-boto3 in package.xml
- Fix imports in tests
- Fix integration test and add graceful shutdown of the server nodes.
- Merge pull request #1 from aws-robotics/dev initial commit for tts-ros2
- initial commit for tts-ros2
- Contributors: AAlon, Avishay Alon, Yuan "Forrest" Yu, y²
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged tts at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.0.2 |
License | Apache 2.0 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/aws-robotics/tts-ros1.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-02-08 |
Dev Status | MAINTAINED |
CI status | Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- AWS RoboMaker
Authors
- AWS RoboMaker
Changelog for package tts
1.0.1 (2019-03-20)
- Merge pull request #2 from yyu/fix no assert_called() for older versions of mock
- no assert_called() for older versions of mock
- remove rostest from top level find_package (#1) It's conditionally found in the testing section only so it's only a test_depend
- Contributors: Tully Foote, Yuan "Forrest" Yu, y²
1.0.0 (2019-03-20)
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
actionlib | |
actionlib_msgs | |
message_generation | |
rospy | |
std_msgs | |
sound_play | |
rosunit | |
rostest | |
catkin | |
message_runtime |
System Dependencies
Name |
---|
python-boto3 |
python-mock |
Dependant Packages
Launch files
- launch/tts_polly.launch
- This launch file runs the tts nodes.
-
- polly_node_name [default: polly_node]
- synthesizer_node_name [default: synthesizer_node]
- tts_node_name [default: tts_node]
- audio_output_device [default: ]
- config_file [default: ]
- launch/sample_application.launch
- This launch file runs the tts nodes.
-
- config_file [default: $(find tts)/config/sample_configuration.yaml]
Messages
Services
Plugins
Recent questions tagged tts at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 1.0.2 |
License | Apache 2.0 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/aws-robotics/tts-ros1.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-02-08 |
Dev Status | MAINTAINED |
CI status |
|
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- AWS RoboMaker
Authors
- AWS RoboMaker
Changelog for package tts
1.0.1 (2019-03-20)
- Merge pull request #2 from yyu/fix no assert_called() for older versions of mock
- no assert_called() for older versions of mock
- remove rostest from top level find_package (#1) It's conditionally found in the testing section only so it's only a test_depend
- Contributors: Tully Foote, Yuan "Forrest" Yu, y²
1.0.0 (2019-03-20)
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
actionlib | |
actionlib_msgs | |
message_generation | |
rospy | |
std_msgs | |
sound_play | |
rosunit | |
rostest | |
catkin | |
message_runtime |
System Dependencies
Name |
---|
python-boto3 |
python-mock |
Dependant Packages
Launch files
- launch/tts_polly.launch
- This launch file runs the tts nodes.
-
- polly_node_name [default: polly_node]
- synthesizer_node_name [default: synthesizer_node]
- tts_node_name [default: tts_node]
- audio_output_device [default: ]
- config_file [default: ]
- launch/sample_application.launch
- This launch file runs the tts nodes.
-
- config_file [default: $(find tts)/config/sample_configuration.yaml]