BaseOutputTransport: allow sending audio/video to multiple destinations

This commit is contained in:
Aleix Conchillo Flaqué
2025-04-29 13:06:45 -07:00
parent ef3d732607
commit e738affd29
12 changed files with 495 additions and 329 deletions

View File

@@ -462,7 +462,7 @@ class LiveKitOutputTransport(BaseOutputTransport):
else:
await self._client.send_data(frame.message.encode())
async def write_raw_audio_frames(self, frames: bytes):
async def write_raw_audio_frames(self, frames: bytes, destination: Optional[str] = None):
livekit_audio = self._convert_pipecat_audio_to_livekit(frames)
await self._client.publish_audio(livekit_audio)