8 from speech_recognition_msgs.msg
import SpeechRecognitionCandidates
14 self.transcripts.append(msg.transcript[0])
17 expected_sentences = [
'わかめ',
'きつね']
19 sub = rospy.Subscriber(
"speech_to_text", SpeechRecognitionCandidates,
22 start_time = rospy.Time.now()
23 while len(self.
transcripts) < len(expected_sentences):
25 if (rospy.Time.now() - start_time).to_sec() > 20:
28 for s
in expected_sentences:
32 if __name__ ==
'__main__':
34 rospy.init_node(
"test_julius")
35 rostest.rosrun(
"julius_ros",
"test_julius", TestJulius)