formatting code

This commit is contained in:
lanvent
2023-03-12 01:22:49 +08:00
parent 9ae7b7773e
commit 9e07703eb1
3 changed files with 83 additions and 80 deletions

View File

@@ -2,6 +2,7 @@ from bot import bot_factory
from common.singleton import singleton
from voice import voice_factory
@singleton
class Bridge(object):
def __init__(self):
@@ -15,7 +16,6 @@ class Bridge(object):
except ModuleNotFoundError as e:
print(e)
# 以下所有函数需要得到一个reply字典格式如下
# reply["type"] = "ERROR" / "TEXT" / "VOICE" / ...
# reply["content"] = reply的内容
@@ -27,4 +27,4 @@ class Bridge(object):
return self.bots["voice_to_text"].voiceToText(voiceFile)
def fetch_text_to_voice(self, text):
return self.bots["text_to_voice"].textToVoice(text)
return self.bots["text_to_voice"].textToVoice(text)