def test_no_audio_output(self): s_service = rospy.get_param("rapp_text_to_speech_espeak_topic") rospy.wait_for_service(s_service) stt_service = rospy.ServiceProxy(s_service, TextToSpeechSrv) req = TextToSpeechSrvRequest() req.audio_output = '' req.language = 'en' req.text = "Testing" response = stt_service(req) self.assertNotEqual(response.error, "")
def test_error_language(self): s_service = rospy.get_param("rapp_text_to_speech_espeak_topic") rospy.wait_for_service(s_service) stt_service = rospy.ServiceProxy(s_service, TextToSpeechSrv) req = TextToSpeechSrvRequest() req.audio_output = '~/testing.wav' req.language = 'elthisaa' req.text = "This is a test" response = stt_service(req) self.assertNotEqual(response.error, "") self.assertNotEqual(os.path.isfile(os.path.expanduser("~/testing.wav")), True)
def test_error_language(self): s_service = rospy.get_param("rapp_text_to_speech_espeak_topic") rospy.wait_for_service(s_service) stt_service = rospy.ServiceProxy(s_service, TextToSpeechSrv) req = TextToSpeechSrvRequest() req.audio_output = '~/testing.wav' req.language = 'elthisaa' req.text = "This is a test" response = stt_service(req) self.assertNotEqual(response.error, "") self.assertNotEqual( os.path.isfile(os.path.expanduser("~/testing.wav")), True)