From fe3b38c5fddb3f67b611711ed495462f41ee1274 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Sun, 7 Jan 2024 01:50:50 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D[Update]=20Model=20:=20=E7=BF=BB?= =?UTF-8?q?=E8=A8=B3=E8=87=AA=E4=BD=93=E3=81=8C=E5=A4=B1=E6=95=97=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=93=E3=81=A8=E3=81=8C=E3=81=AA=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E3=83=95=E3=82=A7=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=82=BB=E3=83=BC=E3=83=95=E3=81=AE=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ※別途、ポップアップにて翻訳エンジンが使用できなかった旨のメッセージを出す必要がある --- controller.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/controller.py b/controller.py index 05c3cb91..9c3bd9e0 100644 --- a/controller.py +++ b/controller.py @@ -34,10 +34,10 @@ def sendMicMessage(message): pass else: translation = model.getInputTranslate(message) - if translation is False: - config.ENABLE_TRANSLATION = False - translation = "" - view.translationEngineLimitErrorProcess() + # if translation is False: + # config.ENABLE_TRANSLATION = False + # translation = "" + # view.translationEngineLimitErrorProcess() if config.ENABLE_TRANSCRIPTION_SEND is True: if config.ENABLE_SEND_MESSAGE_TO_VRC is True: @@ -98,10 +98,10 @@ def receiveSpeakerMessage(message): pass else: translation = model.getOutputTranslate(message) - if translation is False: - config.ENABLE_TRANSLATION = False - translation = "" - view.translationEngineLimitErrorProcess() + # if translation is False: + # config.ENABLE_TRANSLATION = False + # translation = "" + # view.translationEngineLimitErrorProcess() if config.ENABLE_TRANSCRIPTION_RECEIVE is True: if config.ENABLE_NOTICE_XSOVERLAY is True: @@ -164,10 +164,10 @@ def sendChatMessage(message): pass else: translation = model.getInputTranslate(message) - if translation is False: - config.ENABLE_TRANSLATION = False - translation = "" - view.translationEngineLimitErrorProcess() + # if translation is False: + # config.ENABLE_TRANSLATION = False + # translation = "" + # view.translationEngineLimitErrorProcess() # send OSC message if config.ENABLE_SEND_MESSAGE_TO_VRC is True: