diff --git a/src/pipecat/transports/websocket/client.py b/src/pipecat/transports/websocket/client.py index f55b1f919..e24352575 100644 --- a/src/pipecat/transports/websocket/client.py +++ b/src/pipecat/transports/websocket/client.py @@ -300,7 +300,7 @@ class WebsocketClientInputTransport(BaseInputTransport): if isinstance(frame, InputAudioRawFrame) and self._params.audio_in_enabled: await self.push_audio_frame(frame) elif isinstance(frame, InputTransportMessageFrame): - await self.broadcast_frame(frame) + await self.broadcast_frame(InputTransportMessageFrame, message=frame.message) else: await self.push_frame(frame) diff --git a/src/pipecat/transports/websocket/fastapi.py b/src/pipecat/transports/websocket/fastapi.py index a0d02ccec..d4f5809d9 100644 --- a/src/pipecat/transports/websocket/fastapi.py +++ b/src/pipecat/transports/websocket/fastapi.py @@ -313,7 +313,7 @@ class FastAPIWebsocketInputTransport(BaseInputTransport): if isinstance(frame, InputAudioRawFrame): await self.push_audio_frame(frame) elif isinstance(frame, InputTransportMessageFrame): - await self.broadcast_frame(frame) + await self.broadcast_frame(InputTransportMessageFrame, message=frame.message) else: await self.push_frame(frame) except Exception as e: diff --git a/src/pipecat/transports/websocket/server.py b/src/pipecat/transports/websocket/server.py index acd4faf92..16964cb9b 100644 --- a/src/pipecat/transports/websocket/server.py +++ b/src/pipecat/transports/websocket/server.py @@ -217,7 +217,7 @@ class WebsocketServerInputTransport(BaseInputTransport): if isinstance(frame, InputAudioRawFrame): await self.push_audio_frame(frame) elif isinstance(frame, InputTransportMessageFrame): - await self.broadcast_frame(frame) + await self.broadcast_frame(InputTransportMessageFrame, message=frame.message) else: await self.push_frame(frame) except Exception as e: