diff --git a/examples/aws-agentcore/bot.py b/examples/aws-agentcore/bot.py index 06c61baff..ddf6d2cef 100644 --- a/examples/aws-agentcore/bot.py +++ b/examples/aws-agentcore/bot.py @@ -29,7 +29,7 @@ from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.llm_service import FunctionCallParams from pipecat.services.openai.llm import OpenAILLMService from pipecat.transports.base_transport import BaseTransport, TransportParams -from pipecat.transports.daily.transport import DailyParams +from pipecat.transports.daily.transport import DailyParams, DailyTransport app = BedrockAgentCoreApp() @@ -82,6 +82,19 @@ transport_params = { async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): logger.info(f"Starting bot") + daily_transport: DailyTransport = transport + daily_transport._client._client.set_ice_config( + { + "iceServers": [ + { + "urls": ["turn:turn.cloudflare.com:3478?transport=tcp"], + "username": "YOUR_TURN_USERNAME", + "credential": "YOUR_TURN_CREDENTIAL", + }, + ] + } + ) + public_ip = await get_public_ip() if public_ip: logger.info(f"Public IP address: {public_ip}") diff --git a/examples/aws-agentcore/uv.lock b/examples/aws-agentcore/uv.lock index cfde0f3d5..e9f7ba329 100644 --- a/examples/aws-agentcore/uv.lock +++ b/examples/aws-agentcore/uv.lock @@ -20,6 +20,7 @@ name = "agentcore-pipecat" version = "0.1.0" source = { virtual = "." } dependencies = [ + { name = "aiohttp" }, { name = "bedrock-agentcore" }, { name = "pipecat-ai", extra = ["cartesia", "daily", "deepgram", "local-smart-turn-v3", "openai", "runner", "silero", "webrtc"] }, ] @@ -33,6 +34,7 @@ dev = [ [package.metadata] requires-dist = [ + { name = "aiohttp" }, { name = "bedrock-agentcore" }, { name = "pipecat-ai", extras = ["webrtc", "daily", "silero", "deepgram", "openai", "cartesia", "local-smart-turn-v3", "runner"] }, ]