コード例 #1
0
ファイル: stt.py プロジェクト: zhilangtaosha/laibot-client
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
コード例 #2
0
ファイル: test_diagnose.py プロジェクト: GruffPrys/macsen
 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"))
コード例 #3
0
def testPythonImportCheck():
    # This a python stdlib module that definitely exists
    assert diagnose.check_python_import("os")
    # I sincerly hope nobody will ever create a package with that name
    assert not diagnose.check_python_import("nonexistant_package")
コード例 #4
0
ファイル: tts.py プロジェクト: Boudewijn26/jasper-client
 def is_available(cls):
     return (super(cls, cls).is_available() and
             diagnose.check_python_import('pyvona') and
             diagnose.check_network_connection())
コード例 #5
0
ファイル: tts.py プロジェクト: Boudewijn26/jasper-client
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available() and
             diagnose.check_python_import('pydub'))
コード例 #6
0
ファイル: stt.py プロジェクト: Boudewijn26/jasper-client
 def is_available(cls):
     return diagnose.check_python_import('pocketsphinx')
コード例 #7
0
ファイル: tts.py プロジェクト: zhilangtaosha/laibot-client
 def is_available(cls):
     return (super(AbstractMp3TTSEngine, cls).is_available()
             and diagnose.check_python_import('mad'))