def __init__(self, **kwargs):
super(HQC, self).__init__(**kwargs)
self.config = hqc_config.get_instance(file="conn.conf")
self.phone = HQCPhone(self.config)
self.chat_client = None
# Recorder object from audio module
self.recorder = None
# Recording directory
self.storage_dir = self.config.get('AudioSettings', 'recording_location')
self.session_name = datetime.now().strftime(constants.DATETIME_SESSION)
self.audio_file_location = os.path.join(self.storage_dir, self.session_name)
if not os.path.exists(self.audio_file_location):
os.makedirs(self.audio_file_location)
# color for gui text
self.dark_blue = '2939b0'
# Build should only handle setting up GUI-specific items
评论列表
文章目录