File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def on_participant_disconnected(participant: rtc.RemoteParticipant):
100100 logging .info ("participant disconnected: %s" , participant .identity )
101101
102102 room .on ("participant_disconnected" , on_participant_disconnected )
103-
103+
104104 token = (
105105 api .AccessToken (api_key , api_secret )
106106 .with_identity ("local-audio" )
Original file line number Diff line number Diff line change @@ -16,14 +16,16 @@ async def main() -> None:
1616 api_key = os .getenv ("LIVEKIT_API_KEY" )
1717 api_secret = os .getenv ("LIVEKIT_API_SECRET" )
1818 if not url or not api_key or not api_secret :
19- raise RuntimeError ("LIVEKIT_URL and LIVEKIT_API_KEY and LIVEKIT_API_SECRET must be set in env" )
19+ raise RuntimeError (
20+ "LIVEKIT_URL and LIVEKIT_API_KEY and LIVEKIT_API_SECRET must be set in env"
21+ )
2022
2123 room = rtc .Room ()
2224
2325 # Create media devices helper and open default microphone with AEC enabled
2426 devices = rtc .MediaDevices ()
2527 mic = devices .open_input (enable_aec = True )
26-
28+
2729 token = (
2830 api .AccessToken (api_key , api_secret )
2931 .with_identity ("local-audio" )
@@ -36,7 +38,7 @@ async def main() -> None:
3638 )
3739 .to_jwt ()
3840 )
39-
41+
4042 try :
4143 await room .connect (url , token )
4244 logging .info ("connected to room %s" , room .name )
You can’t perform that action at this time.
0 commit comments