From 2c1fd3c3cc1add9e295a1ab1b7e5f3f399d25387 Mon Sep 17 00:00:00 2001 From: James Hush Date: Tue, 7 Jan 2025 15:45:55 +0800 Subject: [PATCH 1/5] docs: update dependencies for modal demo --- examples/deployment/modal-example/requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/deployment/modal-example/requirements.txt b/examples/deployment/modal-example/requirements.txt index 479a18b35..5c972220b 100644 --- a/examples/deployment/modal-example/requirements.txt +++ b/examples/deployment/modal-example/requirements.txt @@ -1,5 +1,5 @@ python-dotenv==1.0.1 -modal==0.65.48 -pipecat-ai[daily,silero,cartesia,openai]==0.0.48 -fastapi==0.115.4 -aiohttp==3.11.9 +modal==0.71.3 +pipecat-ai[daily,silero,cartesia,openai]==0.0.52 +fastapi==0.115.6 +aiohttp==3.11.11 From 79afe7ec2a2d8bf3fd35c9bfcd29ef756c7fbd6d Mon Sep 17 00:00:00 2001 From: Joe Garlick Date: Tue, 7 Jan 2025 11:43:57 +0000 Subject: [PATCH 2/5] Changed: Polly authentication information to be optional --- src/pipecat/services/aws.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipecat/services/aws.py b/src/pipecat/services/aws.py index b6a763f16..a4ec6622b 100644 --- a/src/pipecat/services/aws.py +++ b/src/pipecat/services/aws.py @@ -119,9 +119,9 @@ class PollyTTSService(TTSService): def __init__( self, *, - api_key: str, - aws_access_key_id: str, - region: str, + api_key: Optional[str] = None, + aws_access_key_id: Optional[str] = None, + region: Optional[str] = None, voice_id: str = "Joanna", sample_rate: int = 24000, params: InputParams = InputParams(), From f37626f81d755d9eb18f169f36166eae5acff9e9 Mon Sep 17 00:00:00 2001 From: Vaibhav159 Date: Tue, 7 Jan 2025 21:38:05 +0530 Subject: [PATCH 3/5] adding more daily room params --- CHANGELOG.md | 2 ++ src/pipecat/transports/services/helpers/daily_rest.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fc32ae72..812128202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `29-livekit-audio-chat.py`, as a new foundational examples for `LiveKitTransportLayer`. +- Added `enable_prejoin_ui`, `max_participants` and `start_video_off` params + to `DailyRoomProperties`. ### Fixed diff --git a/src/pipecat/transports/services/helpers/daily_rest.py b/src/pipecat/transports/services/helpers/daily_rest.py index c17af897c..e381c4d0c 100644 --- a/src/pipecat/transports/services/helpers/daily_rest.py +++ b/src/pipecat/transports/services/helpers/daily_rest.py @@ -39,20 +39,25 @@ class DailyRoomProperties(BaseModel, extra="allow"): Attributes: exp: Optional Unix epoch timestamp for room expiration (e.g., time.time() + 300 for 5 minutes) enable_chat: Whether chat is enabled in the room + enable_prejoin_ui: Whether the pre-join UI is enabled enable_emoji_reactions: Whether emoji reactions are enabled eject_at_room_exp: Whether to remove participants when room expires enable_dialout: Whether SIP dial-out is enabled sip: SIP configuration parameters sip_uri: SIP URI information returned by Daily + start_video_off: Whether video is off by default """ exp: Optional[float] = None enable_chat: bool = False + enable_prejoin_ui: bool = True enable_emoji_reactions: bool = False eject_at_room_exp: bool = True enable_dialout: Optional[bool] = None + max_participants: Optional[int] = None sip: Optional[DailyRoomSipParams] = None sip_uri: Optional[dict] = None + start_video_off: bool = False @property def sip_endpoint(self) -> str: From bb767831d508df1c17b04476dc68ec9fead2f0de Mon Sep 17 00:00:00 2001 From: Joe Garlick Date: Tue, 7 Jan 2025 19:05:02 +0000 Subject: [PATCH 4/5] Added: Changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fc32ae72..511af765e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `29-livekit-audio-chat.py`, as a new foundational examples for `LiveKitTransportLayer`. +### Changed + +- api_key, aws_access_key_id and region are no longer required parameters for the PollyTTSService (AWSTTSService) + ### Fixed - Fixed an issue where `OpenAIRealtimeBetaLLMService` audio chunks were hitting From 787ade41f3b15cfce192336735efccd2efd8a137 Mon Sep 17 00:00:00 2001 From: Vaibhav159 Date: Wed, 8 Jan 2025 00:58:01 +0530 Subject: [PATCH 5/5] adding missing doc string --- src/pipecat/transports/services/helpers/daily_rest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipecat/transports/services/helpers/daily_rest.py b/src/pipecat/transports/services/helpers/daily_rest.py index e381c4d0c..f81113b38 100644 --- a/src/pipecat/transports/services/helpers/daily_rest.py +++ b/src/pipecat/transports/services/helpers/daily_rest.py @@ -43,9 +43,12 @@ class DailyRoomProperties(BaseModel, extra="allow"): enable_emoji_reactions: Whether emoji reactions are enabled eject_at_room_exp: Whether to remove participants when room expires enable_dialout: Whether SIP dial-out is enabled + max_participants: Maximum number of participants allowed in the room sip: SIP configuration parameters sip_uri: SIP URI information returned by Daily start_video_off: Whether video is off by default + + Reference: https://docs.daily.co/reference/rest-api/rooms/create-room#properties """ exp: Optional[float] = None