voice token
This block is part of the realtime group and was last modified in core v15.0.2.
voice token v15.0.2 Lets one person into a voice or video room: a signed join token and the node to connect to.
- flow
- room
valuerequired - identity
valuedefault the run's socket's user (user{sep}session when the provider sets identity_separator)
- name
value - metadata
valuea string or an object
- ttl
numberseconds; default 3600
- provider
valuethe node for a room not placed yet; default the entity's binding
- can publish
conditiondefault true
- can subscribe
conditionhears and sees the others; default true
- can publish data
conditionmay send on the room's data channel; default true
- hidden
conditionin the room, unseen by the others
- sources
arrayexactly the sources they may publish (microphone, camera, screen_share, screen_share_audio); not wired is every source, an empty list is none
- flow
- success
condition - token
value - url
value - identity
value - provider
value - expires
number - error
value
Signs a LiveKit-protocol access token for room with the node's key. The first token for a room places it on provider (default the entity's voice binding) and every later token and voice_room_* call for that room goes to the same node, on every core node, until the room has been quiet for a day; provider is ignored for a placed room. identity defaults to the run's socket's user, in the provider's convention: the user (one seat per person), or user{sep}session when the provider sets identity_separator (two devices of one person are two participants); name and metadata (a string or an object, JSON-encoded) are what the others see. The grant is LiveKit's: can_publish, can_subscribe and can_publish_data (each true unless wired false), hidden, and sources (not wired is every source; a list is exactly those; an empty list publishes nothing, which turns publishing off, because LiveKit reads an empty list as every source). A mute is sources without microphone; a deafen is can_subscribe false as well: blueprint over these pins. ttl in seconds, default 3600, at most a day. The app connects to url with token.
Version history
Introduced in v15.0.2.
v15.0.2: block added in this release.
Back to
realtime Return to the main group to view all sub-groups Back to voice Return to the group to view all blocks within this group