Text-to-speech (TTS)ΒΆ
The TIAGo Pro provides a text-to-speech (TTS) system that allows the robot to speak any text. The TTS system is based on the Acapela TTS engine, which provides high-quality voices in multiple languages.
To retrieve the list of available languages and voices, you can use the following command:
pal module log tts_engine head -n 200
Please contact PAL Robotics support if you want to add new Acapela voices or languages to the TTS system.
To make the robot speak, you can publish a message to the tts action. For example, to make the robot say "Hello, I am TIAGo Pro" in English using the default voice, you can use the following command:
ros2 action send_goal /tts_engine/tts tts_msgs/action/TTS "input: 'Hello, I am TIAGo Pro'
locale: 'en_US'
voice: ''"
Alternatively, you can use a non-verbal mode where the robot converts sentences into a sequence of sounds. To use this mode you should set the non_verbal_mode parameter to true and then use the same command as before to send the text you want to convert into sounds. Below the command to change the TTS engine to non-verbal mode through the command line:
ros2 param set /tts_engine non_verbal_mode true