Working on whisper
This commit is contained in:
parent
bcc187e8cc
commit
eb5416c4f0
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# Add the voicebot directory to the path
|
# Add the voicebot directory to the path
|
||||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
from shared.logger import logger
|
from shared.logger import logger
|
||||||
|
|
||||||
|
@ -648,9 +648,11 @@ class WebRTCSignalingClient:
|
|||||||
logger.debug(f"Received status_response from server with data: {data}")
|
logger.debug(f"Received status_response from server with data: {data}")
|
||||||
# This confirms the connection is healthy and provides session info
|
# This confirms the connection is healthy and provides session info
|
||||||
elif msg_type == "chat_message":
|
elif msg_type == "chat_message":
|
||||||
logger.info("Received chat message")
|
|
||||||
try:
|
try:
|
||||||
validated = ChatMessageModel.model_validate(data)
|
validated = ChatMessageModel.model_validate(data)
|
||||||
|
if validated.sender_session_id == self.session_id:
|
||||||
|
logger.debug("Ignoring chat message from ourselves")
|
||||||
|
return
|
||||||
except ValidationError as e:
|
except ValidationError as e:
|
||||||
logger.error(f"Invalid chat_message payload: {e}", exc_info=True)
|
logger.error(f"Invalid chat_message payload: {e}", exc_info=True)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user