@@ -28,7 +28,7 @@ def eval_fn(topic, m, t):
2828class SpeakThread (Thread ):
2929
3030 def __init__ (self , rate = 1.0 , wait = True , blacklist = None ,
31- language = 'en ' ,
31+ language = '' ,
3232 volume = 1.0 ,
3333 speak_interval = 0 ,
3434 seconds_to_start_speaking = 0 ,
@@ -97,7 +97,7 @@ def run(self):
9797 goal .sound_request .sound = SoundRequest .SAY
9898 goal .sound_request .command = SoundRequest .PLAY_ONCE
9999 goal .sound_request .arg = sentence
100- goal .sound_request .language = self .language
100+ goal .sound_request .arg2 = self .language
101101 goal .sound_request .volume = self .volume
102102
103103 self .previous_spoken_time [e .name ] = rospy .Time .now ().to_sec ()
@@ -114,7 +114,7 @@ def __init__(self):
114114 speak_interval = rospy .get_param ("~speak_interval" , 120.0 )
115115 wait_speak = rospy .get_param ("~wait_speak" , True )
116116 volume = rospy .get_param ("~volume" , 1.0 )
117- language = rospy .get_param ('~language' , 'en ' )
117+ language = rospy .get_param ('~language' , '' )
118118 seconds_to_start_speaking = rospy .get_param (
119119 '~seconds_to_start_speaking' , 0 )
120120
0 commit comments