예제 #1
0
파일: test_tts.py 프로젝트: johndpope/SAAI
class MacOSXTTSTests(TestCase):
    """
    The MacOSXTTS adapter is designed to allow
    interaction with the chat bot to occur through
    a command line interface and via speech.
    """

    def setUp(self):
        self.adapter = MacOSXTTS()

    def test_response_is_returned(self):
        """
        For consistency across io adapters, the
        MacOSXTTS should return the output value.
        """
        statement = Statement("Testing speech synthesis.")

        self.assertEqual(
            self.adapter.process_response(statement),
            statement.text
        )
예제 #2
0
파일: test_tts.py 프로젝트: johndpope/SAAI
 def setUp(self):
     self.adapter = MacOSXTTS()