luxai-qtrobot / QA

Virtual repository for Questions & Answers system
http://luxai-qtrobot.github.io
5 stars 0 forks source link

I can't change the pitch of languages #54

Open TechnoX opened 2 years ago

TechnoX commented 2 years ago

I can't change the pitch using the service /qt_robot/speech/config

I have tested both the command line interface:

rosservice call /qt_robot/speech/config "language: 'en-US'
pitch: 80
speed: 100" 

And through python

self.speech_config_srv("en_US", 150, 50)

The speed is changed (and the language), but not the pitch. I have tested different languages (English, Swedish, Chinese etc.) but none works.

codionysus commented 2 years ago

Hi @TechnoX, It looks like that way of changing pitch doesn't work anymore. We are updating robot interface, but meantime you can change pitch of the voice by using 'text-tags'. The equivalent for the pitch is the Voice Shaping tag.

\vct=100\ Voice Shaping in percent: 70 % …. 140%

Depends in which code you are programing but for example in python the tag would be written \\vct=100\\ inside the text. You will find in this attachment the list of the available tags.