🐛[bigfix] DeepL Auth Keyの利用上限に達した場合の処理を追加
This commit is contained in:
12
main.py
12
main.py
@@ -19,6 +19,10 @@ def sendMicMessage(message):
|
||||
else:
|
||||
translation = model.getInputTranslate(message)
|
||||
|
||||
if translation == None:
|
||||
view.printToTextbox_AuthenticationError()
|
||||
translation = ""
|
||||
|
||||
if config.ENABLE_TRANSCRIPTION_SEND is True:
|
||||
if config.ENABLE_OSC is True:
|
||||
if len(translation) > 0:
|
||||
@@ -56,6 +60,10 @@ def receiveSpeakerMessage(message):
|
||||
else:
|
||||
translation = model.getOutputTranslate(message)
|
||||
|
||||
if translation == None:
|
||||
view.printToTextbox_AuthenticationError()
|
||||
translation = ""
|
||||
|
||||
if config.ENABLE_TRANSCRIPTION_RECEIVE is True:
|
||||
if config.ENABLE_NOTICE_XSOVERLAY is True:
|
||||
xsoverlay_message = config.MESSAGE_FORMAT.replace("[message]", message)
|
||||
@@ -86,6 +94,10 @@ def sendChatMessage(message):
|
||||
else:
|
||||
translation = model.getInputTranslate(message)
|
||||
|
||||
if translation == None:
|
||||
view.printToTextbox_AuthenticationError()
|
||||
translation = ""
|
||||
|
||||
# send OSC message
|
||||
if config.ENABLE_OSC is True:
|
||||
if len(translation) > 0:
|
||||
|
||||
Reference in New Issue
Block a user