From 50b51c05f62c13242c1afb8028eb93ec4ef147f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 5 Jun 2024 12:14:00 -0700 Subject: [PATCH] transports(daily): added participants() and participant_counts() --- CHANGELOG.md | 6 ++++++ src/pipecat/transports/services/daily.py | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30e089c45..d46b012c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to **pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.27] - 2024-06-05 + +### Added + +- Added `DailyTransport.participants()` and `DailyTransport.participant_counts()`. + ## [0.0.26] - 2024-06-05 ### Added diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 25989a42c..893aa9400 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -346,6 +346,12 @@ class DailyTransportClient(EventHandler): self._client.release() self._client = None + def participants(self): + return self._client.participants() + + def participant_counts(self): + return self._client.participant_counts() + def start_dialout(self, settings): self._client.start_dialout(settings) @@ -715,6 +721,12 @@ class DailyTransport(BaseTransport): if self._output: await self._output.process_frame(frame, FrameDirection.DOWNSTREAM) + def participants(self): + return self._client.participants() + + def participant_counts(self): + return self._client.participant_counts() + def start_dialout(self, settings=None): self._client.start_dialout(settings)