Conferences & Meet
All 30 bale.meet.v1.Meet RPCs have a typed
wrapper. Voice is the default; video is opt-in. Payloads for the four core
calls are verified byte-for-byte against a real browser capture.
create_conference(..., voice=True) sends
StartGroupCall with video=False. That is what the
web client does for a voice room — the camera stays off and no video track
is published.
Three different things people call "a call"
| Thing | Entry point | Lifetime | Participants |
|---|---|---|---|
| Meet link | create_meet_link() | Persistent room with a URL | Anyone with the link |
| Group conference | create_conference(peer) | Bound to a chat | Chat members |
| Private call | start_call(peer) | One-to-one, rings | Two |
Create a Meet link
This is the browser's "create call" button, reproduced exactly:
meeting = await client.create_meet_link(
title="Team sync", # optional; triggers SetLinkTitle
is_public=True, # anyone with the URL can join
voice=True, # audio-only room
)
meeting["link"] # https://meet.bale.ai/i/zfqw-52pog-g5o5
meeting["expires_in"] # 10800 seconds → 3 hours
meeting["group_call"]["id"] # 3989589941225409291
meeting["group_call"]["mode"] # 3 → multi-peer
- emits
GenerateCallLink→SetLinkTitle(only if a title is given)- returns
{link, expires_in, group_call}
Group conference
result = await client.create_conference(
"987654321|2", # the group peer
voice=True, # False → video
mode="group", # "group" | "multi_peer" | "live"
public=False,
title=None,
invitees=(),
)
call = result["group_call"]
print(call["id"], call["room"], call["voice"])
mode | Int | Browser equivalent | video |
|---|---|---|---|
"group" | 2 | Group voice/video room | False → audio |
"multi_peer" | 3 | startMultiPeerCall in the JS bundle | False → audio |
"live" | 4 | Live broadcast | False |
startMultiPeerCall.
That identifier exists in the web bundle but not in the protocol. It
is a client-side helper that ends up calling
StartGroupCall with mode=3. bale xyz maps it to
mode="multi_peer" rather than inventing a method.
Join, and actually connect
Joining is two separate systems — an RPC for membership, then a WebRTC connection:
conn = await client.join_conference(
call_id,
name="Alice",
connect=False, # just the RPC, returns a token
)
conn.room # livekit room name
conn.token # JWT for the media server
conn.permissions.can_publish
# now attach the media transport
room = await conn.connect() # needs pip install "bale-xyz[voice]"
- RPC:
JoinGroupCall— payload{callId, name:{text}}. The response carriesgroupCall.token, a LiveKit JWT whose claims includeroom,canPublish,canSubscribeandsub(your user id). - Resolve the media server:
GetWssURLwith the call id returns the node URL, e.g.wss://meet-gwbm5.ble.ir. - WebRTC — connect to
wss://<node>/rtc/v1?access_token=…&join_request=…, negotiate SDP, exchange ICE.
Private one-to-one calls
await client.start_call("555|1", voice=True) # ringing
await client.receive_call(call_id) # mark as ringing on your side
await client.accept_call(call_id) # answer
await client.discard_call(call_id) # hang up
Moderate a live room
await client.mute_participant(call_id, "111|1", muted=True)
await client.remove_from_call(call_id, identity="spammer", block=True)
await client.raise_hand(call_id, "identity-42")
await client.lower_hand(call_id, "identity-42")
await client.send_call_reaction(call_id, "❤️")
await client.update_call_layout(call_id, "grid")
# approval flow for locked rooms
await client.ask_to_join_call(call_id, name="Bob")
await client.answer_join_request(call_id, requester="req-7", allow=True)
Record, stream, inspect
await client.start_call_recording(call_id, quality="high")
await client.stop_call_recording(call_id)
key = await client.start_call_stream("555|1", rtmp_server="rtmp://live/…")
await client.delete_call_stream("555|1")
await client.get_call("987654321|2") # active call for a chat, or None
await client.get_ongoing_calls() # every live call on the account
await client.get_call_logs(limit=20)
await client.delete_call_logs([call_id])
await client.get_call_state(call_id)
await client.submit_call_feedback(call_id, rate=5, opinion="clear audio")
Call links
link = await client.generate_call_link(call_id, public=True, title="Standup")
await client.set_call_link_title(call_id, "Renamed", link=link["link"])
details = await client.get_call_link_details(link["link"])
GenerateCallLink takes callId as a bare int64, but
SetLinkTitle expects callId: {value: …}. This
asymmetry is in the protocol, not a bug in the library — both are handled,
and tests/test_meet_capture.py pins the difference.
Coverage table
| RPC | Client method | HAR-verified |
|---|---|---|
StartGroupCall | create_conference | schema |
GenerateCallLink | create_meet_link | bytes |
SetLinkTitle | set_call_link_title | schema |
GetWssURL | join_conference | bytes |
JoinGroupCall | join_conference | bytes |
GetOngoingCalls | get_ongoing_calls | response |
GetCallLogs | get_call_logs | response |
… the remaining 23 are wrapped and listed by bale-xyz methods -s bale.meet.v1.Meet | ||
Escape hatch
await client.call("bale.meet.v1.Meet", "GetCallState", {"callId": 123})