From 9fd3e466abebea8d4d91fad7701aa2d8e0f34a9c Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Sat, 26 Jul 2025 10:15:32 -0400 Subject: [PATCH] Add startup message for local WebRTC, remove WebRTC from cloud /connect --- src/pipecat/runner/cloud.py | 8 +------- src/pipecat/runner/local.py | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/pipecat/runner/cloud.py b/src/pipecat/runner/cloud.py index e8371c3ba..f9d440775 100644 --- a/src/pipecat/runner/cloud.py +++ b/src/pipecat/runner/cloud.py @@ -296,15 +296,9 @@ def _create_server_app(transport_type: str, host: str = "localhost", proxy: str asyncio.create_task(bot_module.bot(session_args)) return {"room_url": room_url, "token": token} - # TODO: Should the WebRTC client POST to /connect to start the bot? - # How should this initialization process work? - # Right now, the client connects to `/api/offer` and the bot is started - # automatically when the first offer is received. Do we want this? - # elif transport_type == "webrtc": - # return {"client_url": "/client/"} else: return { - "error": f"RTVI connect not supported for {transport_type} transport. Use Daily or WebRTC." + "error": f"RTVI connect not supported for {transport_type} transport. Use Daily." } return app diff --git a/src/pipecat/runner/local.py b/src/pipecat/runner/local.py index b83c5234e..6e167fb2f 100644 --- a/src/pipecat/runner/local.py +++ b/src/pipecat/runner/local.py @@ -400,4 +400,11 @@ def main( logger.remove(0) logger.add(sys.stderr, level="TRACE" if args.verbose else "DEBUG") + # Startup messages for browser-accessible transports + if args.transport == "webrtc": + print() + print(f"🚀 WebRTC server starting at http://{args.host}:{args.port}/client") + print(f" Open this URL in your browser to connect!") + print() + _run_main(run, args, transport_params)