Skip to main content
The WebRTC Connection Service in the Galtea SDK allows you to manage WebRTC connections for your products. This Service is exposed by the galtea.web_rtc_connections object.
Remember that we will be using the galtea object. More information here.

Quick Example

First, initialize the Galtea SDK:
galtea = Galtea(api_key="YOUR_API_KEY")
Create a WebRTC connection:
web_rtc_connection = galtea.web_rtc_connections.create(
    product_id=product_id,
    name="production-voice-agent-" + run_identifier,
    api_key="YOUR_PIPECAT_CLOUD_API_KEY",
    agent_name="my-pipecat-agent",
    agent_speaks_first=False,
)
List WebRTC connections for a product:
web_rtc_connections = galtea.web_rtc_connections.list(
    product_ids=[product_id],
    sort_by_created_at="desc",
    limit=10,
)
Get a WebRTC connection by ID:
web_rtc_connection = galtea.web_rtc_connections.get(web_rtc_connection_id=web_rtc_connection_id)

Service Methods

WebRTC Connection

A reusable connection that reaches your AI voice agent over WebRTC during voice evaluation