예제 #1
0
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
예제 #2
0
 def is_available(cls):
     return (super(cls, cls).is_available() and
             diagnose.check_python_import('pyvona') and
             diagnose.check_network_connection())
예제 #3
0
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available() and
             diagnose.check_python_import('mad'))
예제 #4
0
 def testPythonImportCheck(self):
     # This a python stdlib module that definitely exists
     self.assertTrue(diagnose.check_python_import("os"))
     # I sincerly hope nobody will ever create a package with that name
     self.assertFalse(diagnose.check_python_import("nonexistant_package"))
예제 #5
0
 def is_available(cls):
     return diagnose.check_python_import('pyoxford') and diagnose.check_network_connection()
예제 #6
0
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
예제 #7
0
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available()
             and diagnose.check_python_import('mad'))
예제 #8
0
 def is_available(cls):
     return (super(cls, cls).is_available()
             and diagnose.check_python_import('gtts')
             and diagnose.check_network_connection())
예제 #9
0
파일: test.py 프로젝트: bfla/jasper-client
 def testPythonImportCheck(self):
     # This a python stdlib module that definitely exists
     self.assertTrue(diagnose.check_python_import("os"))
     # I sincerly hope nobody will ever create a package with that name
     self.assertFalse(diagnose.check_python_import("nonexistant_package"))
예제 #10
0
 def is_available(cls):
     return diagnose.check_python_import('snowboy.snowboydetect')