[Update] transcription send (only main window)

This commit is contained in:
misygauziya
2023-08-27 07:40:19 +09:00
parent d668a37174
commit a0cabdd8d2
2 changed files with 95 additions and 7 deletions

View File

@@ -79,8 +79,7 @@ class Model:
target_language=config.INPUT_TARGET_LANG,
message=message
)
message = config.MESSAGE_FORMAT.replace("[message]", message).replace("[translation]", translation)
return message
return translation
def getOutputTranslate(self, message):
translation = self.translator.translate(
@@ -89,8 +88,7 @@ class Model:
target_language=config.OUTPUT_TARGET_LANG,
message=message
)
message = config.MESSAGE_FORMAT.replace("[message]", message).replace("[translation]", translation)
return message
return translation
def addKeywords(self):
for f in config.INPUT_MIC_WORD_FILTER: