From 5d0db4a8fa9d3947e735556a14679741d92c19b1 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Thu, 23 Nov 2023 00:41:05 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=A9=9F=E8=83=BD=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/controller.py b/controller.py index 127fa8b3..e436e2ef 100644 --- a/controller.py +++ b/controller.py @@ -111,6 +111,17 @@ def receiveSpeakerMessage(message): xsoverlay_message = message model.notificationXSOverlay(xsoverlay_message) + # ------------Speaker2Chatbox------------ + # send OSC message + if config.ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC is True: + if len(translation) > 0: + osc_message = config.RECEIVED_MESSAGE_FORMAT.replace("[message]", message) + osc_message = osc_message.replace("[translation]", translation) + else: + osc_message = message + model.oscSendMessage(osc_message) + # ------------Speaker2Chatbox------------ + # update textbox message log (Received) view.printToTextbox_ReceivedMessage(message, translation) if config.ENABLE_LOGGER is True: