示例#1
0
文件: mary.py 项目: chakraroy/talkey
 def _is_available(self):
     return check_network_connection(self.ioptions['host'], self.ioptions['port'])
示例#2
0
 def _is_available(self):
     return (check_python_import('gtts')
             and check_network_connection('translate.google.com', 80))
示例#3
0
 def _is_available(self):
     return (
         check_python_import('gtts')
         and check_network_connection('translate.google.com', 80)
     )
示例#4
0
文件: mary.py 项目: JCGit2018/talkey
 def _is_available(self):
     return check_network_connection(self.ioptions['host'],
                                     self.ioptions['port'])