English فارسی

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.

Audio first, by design.

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"

ThingEntry pointLifetimeParticipants
Meet linkcreate_meet_link()Persistent room with a URLAnyone with the link
Group conferencecreate_conference(peer)Bound to a chatChat members
Private callstart_call(peer)One-to-one, ringsTwo

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
async create_meet_link(*, title=None, is_public=True, voice=True)
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"])
modeIntBrowser equivalentvideo
"group"2Group voice/video roomFalse → audio
"multi_peer"3startMultiPeerCall in the JS bundleFalse → audio
"live"4Live broadcastFalse
About 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]"
  1. RPC: JoinGroupCall — payload {callId, name:{text}}. The response carries groupCall.token, a LiveKit JWT whose claims include room, canPublish, canSubscribe and sub (your user id).
  2. Resolve the media server: GetWssURL with the call id returns the node URL, e.g. wss://meet-gwbm5.ble.ir.
  3. 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")
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"])
A rough edge worth knowing.

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

RPCClient methodHAR-verified
StartGroupCallcreate_conferenceschema
GenerateCallLinkcreate_meet_linkbytes
SetLinkTitleset_call_link_titleschema
GetWssURLjoin_conferencebytes
JoinGroupCalljoin_conferencebytes
GetOngoingCallsget_ongoing_callsresponse
GetCallLogsget_call_logsresponse
… the remaining 23 are wrapped and listed by bale-xyz methods -s bale.meet.v1.Meet

How the bytes were verified →

Escape hatch

await client.call("bale.meet.v1.Meet", "GetCallState", {"callId": 123})
bale xyz 1.0.0 · MIT licensed · unofficial client © 2026 bale xyz contributors