👍[Update] Model : 翻訳自体が失敗することがなくなったのでフェールセーフの処理を削除

※別途、ポップアップにて翻訳エンジンが使用できなかった旨のメッセージを出す必要がある
This commit is contained in:
misyaguziya
2024-01-07 01:50:50 +09:00
parent 82dde149ee
commit fe3b38c5fd

View File

@@ -34,10 +34,10 @@ def sendMicMessage(message):
pass pass
else: else:
translation = model.getInputTranslate(message) translation = model.getInputTranslate(message)
if translation is False: # if translation is False:
config.ENABLE_TRANSLATION = False # config.ENABLE_TRANSLATION = False
translation = "" # translation = ""
view.translationEngineLimitErrorProcess() # view.translationEngineLimitErrorProcess()
if config.ENABLE_TRANSCRIPTION_SEND is True: if config.ENABLE_TRANSCRIPTION_SEND is True:
if config.ENABLE_SEND_MESSAGE_TO_VRC is True: if config.ENABLE_SEND_MESSAGE_TO_VRC is True:
@@ -98,10 +98,10 @@ def receiveSpeakerMessage(message):
pass pass
else: else:
translation = model.getOutputTranslate(message) translation = model.getOutputTranslate(message)
if translation is False: # if translation is False:
config.ENABLE_TRANSLATION = False # config.ENABLE_TRANSLATION = False
translation = "" # translation = ""
view.translationEngineLimitErrorProcess() # view.translationEngineLimitErrorProcess()
if config.ENABLE_TRANSCRIPTION_RECEIVE is True: if config.ENABLE_TRANSCRIPTION_RECEIVE is True:
if config.ENABLE_NOTICE_XSOVERLAY is True: if config.ENABLE_NOTICE_XSOVERLAY is True:
@@ -164,10 +164,10 @@ def sendChatMessage(message):
pass pass
else: else:
translation = model.getInputTranslate(message) translation = model.getInputTranslate(message)
if translation is False: # if translation is False:
config.ENABLE_TRANSLATION = False # config.ENABLE_TRANSLATION = False
translation = "" # translation = ""
view.translationEngineLimitErrorProcess() # view.translationEngineLimitErrorProcess()
# send OSC message # send OSC message
if config.ENABLE_SEND_MESSAGE_TO_VRC is True: if config.ENABLE_SEND_MESSAGE_TO_VRC is True: