From 46c520bb36d362760ec48d03702f38e5a9540791 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Tue, 29 Jul 2025 23:36:23 -0400 Subject: [PATCH] Set Daily expiration to 2-hrs, add Telnyx API key support --- src/pipecat/runner/daily.py | 4 ++-- src/pipecat/runner/utils.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipecat/runner/daily.py b/src/pipecat/runner/daily.py index 6f045e2c9..3fae393fe 100644 --- a/src/pipecat/runner/daily.py +++ b/src/pipecat/runner/daily.py @@ -103,9 +103,9 @@ async def configure_with_args( aiohttp_session=aiohttp_session, ) - # Create a meeting token for the given room with an expiration 1 hour in + # Create a meeting token for the given room with an expiration 2 hours in # the future. - expiry_time: float = 60 * 60 + expiry_time: float = 2 * 60 * 60 token = await daily_rest_helper.get_token(url, expiry_time) diff --git a/src/pipecat/runner/utils.py b/src/pipecat/runner/utils.py index f0ed2e21b..8797c9ae7 100644 --- a/src/pipecat/runner/utils.py +++ b/src/pipecat/runner/utils.py @@ -363,6 +363,7 @@ async def _create_telephony_transport( call_control_id=call_data["call_control_id"], outbound_encoding=call_data["outbound_encoding"], inbound_encoding="PCMU", # Standard default + api_key=os.getenv("TELNYX_API_KEY", ""), ) elif transport_type == "plivo": from pipecat.serializers.plivo import PlivoFrameSerializer