chore: snapshot livekit-cameras after serial pin + speechbrain lengths fix

This commit is contained in:
Hermes
2026-08-28 05:15:00 +00:00
commit dc46cbef04
14 changed files with 1369 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
"""Generate LiveKit access tokens for the camera participants."""
from livekit.api import AccessToken, VideoGrants
def make_token(url: str, api_key: str, api_secret: str,
room: str, identity: str) -> str:
token = (
AccessToken(api_key, api_secret)
.with_identity(identity)
.with_name(identity)
.with_grants(VideoGrants(
room_join=True,
room=room,
can_publish=True,
can_subscribe=True,
can_publish_data=True,
))
)
return token.to_jwt()