示例#1
0
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
 def setUp(self):
     self.adapter = MacOSXTTS()