Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google_cloud_texttospeech] Cannot change speaking_rate. #268

Open
iory opened this issue Jul 12, 2021 · 4 comments
Open

[google_cloud_texttospeech] Cannot change speaking_rate. #268

iory opened this issue Jul 12, 2021 · 4 comments
Assignees
Labels

Comments

@iory
Copy link
Member

iory commented Jul 12, 2021

text2wave reads speaking_rate at first and sample launch file gives speaking_rate
https://github.com/jsk-ros-pkg/jsk_3rdparty/blob/master/3rdparty/google_cloud_texttospeech/launch/google_cloud_texttospeech.launch#L46 .
However, it seems that this speaking_rate cannot be given correctly.

@iory iory added the bug label Jul 12, 2021
@knorth55
Copy link
Member

However, it seems that this speaking_rate cannot be given correctly.

this line does not have the effect?

speaking_rate = rospy.get_param('~speaking_rate', 1.0)

@iory
Copy link
Member Author

iory commented Jul 12, 2021

text2wave is not a rosnode. It is called from os.system in sound play node.
Unfortunately, the ros namespace is not carried over to text2wave.

@iory
Copy link
Member Author

iory commented Jul 12, 2021

The output for these change (https://github.com/iory/jsk_3rdparty/blob/268/3rdparty/google_cloud_texttospeech/bin/text2wave#L11-L12 ) is as follows.

$ roslaunch google_cloud_texttospeech google_cloud_texttospeech.launch japanese_speed:=0.25
[INFO] [1626085226.732977]: sound_play node is ready to play sound
[Text2Wave] Speaking rate is 1.0
[Text2Wave] namespace "/"

@knorth55
Copy link
Member

@knorth55 in order to solve this issue, we need to make the tts module as plugin in sound_play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants