https://livekit.io logo
Join Slack
Powered by
# helpdesk
  • w

    wide-shoe-67933

    08/06/2024, 8:27 AM
    In the latest version of
    livekit_client: 2.2.3
    and
    flutter_webrtc: ^0.11.6
    it is not possible to switch audio device on Android using
    room.setAudioOutputDevice(device)
    . It seems like its the OS who decide what audio device to use since I can't switch from either speakerphone (if no bluetooth headset is connected) or bluetooth headset.
    t
    • 2
    • 3
  • c

    clever-eye-6338

    08/06/2024, 10:40 AM
    Hey i am getting this error while running the agent server in local
    Copy code
    (venv) yash@Yashs-MacBook-Air livekit % python3 main.py start                           
    {"message": "starting worker", "version": "0.8.3", "timestamp": "2024-08-06T10:38:13.227942+00:00"}
    {"message": "failed to connect to livekit, retrying in 0s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:13.410985+00:00"}
    {"message": "failed to connect to livekit, retrying in 2s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:13.459755+00:00"}
    {"message": "failed to connect to livekit, retrying in 4s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:15.520275+00:00"}
    After properly providing the enviroment variables its still asking for ssl certificates Can anyone help here ??
    e
    a
    t
    • 4
    • 4
  • c

    colossal-memory-2724

    08/06/2024, 1:15 PM
    Hello:) after using JS in livekit, i now want to use flutter, i have this widget below that connects to Livekit because i see the device connected in the admin console eating data, i just cannot find how to connect the track to the VideoTrackRenderer, my code is below and the stuff commented out is what i have been trying, I would love it if someone could help out:)
    t
    • 2
    • 2
  • c

    colossal-memory-2724

    08/06/2024, 1:18 PM
    Sorry, here is the code Future<void> _connectToRoom() async { try { _room = Room(); await _room!.connect(url, token); // _listener = _room!.createListener(); //await _room!.participant.listen(_onTrackSubscribed); // _room!.onParticipantConnected.listen(_onParticipantConnected); // _room!.onParticipantDisconnected.listen(_onParticipantDisconnected); } catch (error) { print('Failed to connect to room: $error'); } } // void _onParticipantConnected(ParticipantConnectedEvent event) { // event.participant.onTrackSubscribed.listen(_onTrackSubscribed); // event.participant.onTrackUnsubscribed.listen(_onTrackUnsubscribed); // } // void _onParticipantDisconnected(ParticipantDisconnectedEvent event) { // // Handle participant disconnect if needed // } void _onTrackSubscribed(TrackSubscribedEvent event) { if (event.track is VideoTrack) { setState(() { _videoTracks.add(event.track as VideoTrack); }); } } void _onTrackUnsubscribed(TrackUnsubscribedEvent event) { if (event.track is VideoTrack) { setState(() { _videoTracks.remove(event.track as VideoTrack); }); } } @override Widget build(BuildContext context) { return Container( width: widget.width, height: widget.height, child: _videoTracks.isNotEmpty ? VideoTrackRenderer(_videoTracks.first) : Center(child: CircularProgressIndicator()), ); } @override void dispose() { _room?.disconnect(); super.dispose(); } }
  • m

    magnificent-fall-63786

    08/06/2024, 1:54 PM
    Hi team! I set up the new VoiceAssistant (amazing work) on a python backend similar to the example you published on GitHub. I am now trying to render in Next.js the chat message history similar to how it is rendered on the LiveKit cloud playground (i.e. streamed transcription of user message & voice assistant reply). I tried wrapping the
    <Chat/>
    component within
    <LiveKitRoom/>
    after wrapping it in`<LayoutContextProvider/>`(throws LayoutContext error otherwise), as well as through useChat():
    Copy code
    const { chatMessages: messages, send } = useChat();
      console.log(messages)
    However, in both cases I can't get any messages returned although the voice assistant answers everything nicely on audio. Can you help point me in the right direction?
    a
    t
    • 3
    • 3
  • w

    wide-shoe-67933

    08/06/2024, 1:59 PM
    When we run
    client.deleteRoom(videoRoomUUID).execute();
    from our backend and mobile participants are currently connected to the room. Webhooks
    room_finished
    AND THEN
    room_started
    are trigger leaving us with a new and empty room every single time. When running web to web, we have no issue at all. We are using Flutter and
    livekit-server 1.7.0
    server-sdk-kotlin 0.5.9
    t
    • 2
    • 5
  • p

    prehistoric-megabyte-78405

    08/06/2024, 2:00 PM
    Hi Team! I am wondering if there is a way to update tokens. If so where can I learn about it? For context: I am making a livekit demo where admin can create room and invite people and give them certain permissions. The generated token will then be: localhost:3000/room?permissionToken=....... The permission token is a token with only the permsions and room name. When a user goes to the link it generates a new token based on the permission token and adds identity of the user. If the admin kicks the user out nothing stops him from rejoining. I want to make the link with the permission token invalid. Is there a way to invalidate a token? Thank in advance for your time!
    t
    • 2
    • 1
  • n

    nice-helicopter-67627

    08/06/2024, 3:24 PM
    Hello I am trying to run multiple agents but getting following errors that address already in use- Do i need to run this on a different port or Am i missing some configuration? How can I run multiple agents? INFOlivekit.agentsstarting worker {"asctime": "2024-08-06 111320,817", "level": "INFO", "name": "livekit.agents", "message": "starting worker", "version": "0.7.1"} ERRORlivekit.agentsworker failed Traceback (most recent call last): File "/Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/cli/cli.py", line 227, in _worker_run await worker.run() File "/Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/worker.py", line 144, in run await asyncio.gather(self._worker_task(), self._http_server.run()) File "/Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/http_server.py", line 27, in run await site.start() File "/Users/projects/facedetection/lib/python3.10/site-packages/aiohttp/web_runner.py", line 119, in start self._server = await loop.create_server( File "/Users/anaconda3/lib/python3.10/asyncio/base_events.py", line 1519, in create_server raise OSError(err.errno, 'error while attempting ' OSError: [Errno 48] error while attempting to bind on address ('127.0.0.1', 8081): address already in use {"asctime": "2024-08-06 111320,821", "level": "ERROR", "name": "livekit.agents", "message": "worker failed", "exc_info": "Traceback (most recent call last):\n File \"/Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/cli/cli.py\", line 227, in _worker_run\n await worker.run()\n File \"Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/worker.py\", line 144, in run\n await asyncio.gather(self._worker_task(), self._http_server.run())\n File \"/Users/projects/facedetection/lib/python3.10/site-packages/livekit/agents/http_server.py\", line 27, in run\n await site.start()\n File \"/Users/projects/facedetection/lib/python3.10/site-packages/aiohttp/web_runner.py\", line 119, in start\n self._server = await loop.create_server(\n File \"/Users/anaconda3/lib/python3.10/asyncio/base_events.py\", line 1519, in create_server\n raise OSError(err.errno, 'error while attempting '\nOSError: [Errno 48] error while attempting to bind on address ('127.0.0.1', 8081): address already in use"}
    t
    • 2
    • 1
  • s

    steep-plumber-1076

    08/06/2024, 3:56 PM
    I have tested the demo code that was present in docs, but i dont understand few things: 1. What really is LiveKit doing? Is it like a framework for Audio-Video, same as langchain is for LLMs? 2. I have noticed that it uses deepgram, is it really required? Doesn't LiveKit has it's own TTS and STT service? Isn't that what pricing is for? 3. I don't want to use rooms and all. Only api call and it should answer it. Is it possible? I find LiveKit interesting but i am unable to understand the pricing of it and use of deepgram and all.
    a
    • 2
    • 1
  • s

    straight-lighter-73455

    08/07/2024, 3:37 AM
    Hello Team, facing same issue as @agreeable-caravan-96409 , i am trying to identify which user sent the chat message, but nothing shows up in the console window, please help, i added this @ctx.room.on("participant_connected") def on_participant_connected(participant: rtc.RemoteParticipant): logging.info( "participant connected: %s %s", participant.sid, participant.identity)
    t
    • 2
    • 1
  • l

    lively-scientist-17790

    08/07/2024, 10:03 AM
    What instance size is recommended / are people using in production to run the VoiceAssistant agent? We're only handling about 10 concurrent users at a time.
    b
    • 2
    • 2
  • m

    modern-london-11230

    08/07/2024, 11:36 AM
    Does livekit supports virtual background while streaming video?
    t
    • 2
    • 1
  • n

    nice-helicopter-67627

    08/07/2024, 1:42 PM
    Hello, Can anyone shed somelight on this variable "capacity" ? or please point to the technical documentation with some explanation. remote_video_stream = rtc.VideoStream(remote_track, format=rtc.VideoBufferType.RGB24, capacity=1)
    t
    • 2
    • 2
  • l

    late-cricket-40276

    08/07/2024, 3:27 PM
    Does anyone have an example iOS chat app that uses LiveKit, OpenAI, ElevenLabs and Firebase?
    g
    • 2
    • 2
  • r

    rich-monitor-70665

    08/07/2024, 3:42 PM
    can anyone tell me what the the external egress custom recording template so i can use it from local server ?
    Copy code
    template_base: // here use cloud template
    t
    • 2
    • 1
  • b

    brave-raincoat-58318

    08/07/2024, 5:17 PM
    Hello, team! I've managed to integrate livekit sip with asterisk. It works I can connect the voip client (like Zoiper) to livekit room, but when I try mute/unmute on voip client seems the livekit sip participant doesn't catch this state changes. Is it bug? Or livekit sip doesn't support mute/unmute sip participants yet? Thanks
    d
    • 2
    • 2
  • l

    loud-xylophone-55270

    08/07/2024, 5:39 PM
    Hi Team, We are following the documentation provided for the self-hosting egress service. I have a question about the websocket URL we are configuring for the livekit egress service. The WS URL we are passing in the client side(front-end) is the Livekit cloud URL and in our local self-hosting egress client, we are configuring the local WS URL. Is that the correct approach or does the WS URL need to be the same? We are trying to implement it with the LiveKit cloud but want to host the Egress Service locally.
    a
    • 2
    • 3
  • q

    quaint-car-35828

    08/07/2024, 6:33 PM
    slackbot spamming
    f
    • 2
    • 1
  • s

    straight-lighter-73455

    08/07/2024, 6:33 PM
    Helllo All, i am building a RAG agent, i need to identify the user who asked the query, based on that I need to do the RAG, can anyone please help provide the code-snippet how to do this?
    f
    • 2
    • 2
  • f

    flaky-sundown-18688

    08/07/2024, 6:35 PM
    set the channel topic: This channel is being sunset, please ask any questions in the relevant channels rather than asking them here.
  • e

    eager-country-92608

    08/08/2024, 12:01 PM
    Hello #helpdesk I want to send some data to my livekit server from client side (next js) whenever new participant joins the room. data like key value pair ( chatbot id or etc ...) can anyone help me with this?
    f
    m
    • 3
    • 6
  • s

    steep-balloon-41261

    08/09/2024, 4:10 AM
    This message was deleted.
    f
    • 2
    • 1
  • g

    green-toddler-51288

    08/09/2024, 9:44 AM
    who do we need to speak to about issues with downloading invoices? I'm getting timeouts when trying to download PDF invoices
    👀 1
    b
    • 2
    • 4
  • m

    mammoth-actor-31484

    08/09/2024, 4:53 PM
    I'm following the documentation to create an agent playground locally. The livekit server is started, the server agent is running, but the agent-playground does not connect. "could not establish signal connection: room connection has timed out (signal)"
    s
    • 2
    • 2
  • d

    dry-elephant-14928

    08/09/2024, 8:49 PM
    Copy code
    This channel is being sunset, please ask any questions in the relevant channels rather than asking them here.
  • s

    steep-plumber-1076

    08/13/2024, 4:10 PM
    I am not sure what i am doing wrong, i followed the documentation as well and yet i am unable to implement openai STT:
    Copy code
    from livekit import rtc, agents
    from livekit.plugins import deepgram, openai, silero
    
    assistant = VoiceAssistant(
                whisper_stt = openai.STT(),
                  vad = silero.VAD.load(
        min_speech_duration=0.1,
        min_silence_duration=0.5,
      ),
                vad_stream = silero.VAD.load(
        min_speech_duration=0.1,
        min_silence_duration=0.5,
      ).stream(),
                stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
        min_speech_duration=0.1,
        min_silence_duration=0.5,
      ).stream()),
                stt_stream = stt.stream(),
                llm=openai.LLM(model="gpt-4o"),
                tts=openai.TTS(),
                chat_ctx=initial_ctx,
                fnc_ctx=fnc_ctx,
            )
    I have tried many different methods and all, still unable to get it done. Please help, the error i am getting is:
    Copy code
    Traceback (most recent call last):
      File "C:\Users\KrishnaKotabhattara\Desktop\RESEARCH\livekit-assistant\Help\dialogue-voice\Audio-Scripts\assistant.py", line 158, in entrypoint
        stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: StreamAdapter.__init__() takes 1 positional argument but 3 were given
    2024-08-13 21:37:45,715 - ERROR - An error occurred: StreamAdapter.__init__() takes 1 positional argument but 3 were given
    Traceback (most recent call last):
      File "C:\Users\KrishnaKotabhattara\Desktop\RESEARCH\livekit-assistant\Help\dialogue-voice\Audio-Scripts\assistant.py", line 158, in entrypoint
        stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: StreamAdapter.__init__() takes 1 positional argument but 3 were given
    b
    t
    • 3
    • 5
  • b

    brainy-author-30449

    08/14/2024, 5:25 AM
    Hi Everyone, I’m currently working on extending the functionality of a DownTrack implementation in a WebRTC-based project. Context: In the existing codebase, the handleMute function for DownTrack is designed to handle muting and unmuting of media streams. For audio tracks, when a mute event is triggered, the code ensures that a few silence frames are sent to maintain the comfort noise generator in a stable state on the decoder side. This is achieved through the following code:
    Copy code
    if d.kind == webrtc.RTPCodecTypeAudio && muted {
        d.writeBlankFrameRTP(RTPBlankFramesMuteSeconds, d.blankFramesGeneration.Load())
    }
    This works perfectly for audio, ensuring that when the audio stream resumes, there is no undesirable noise. The Problem: I have extended this functionality to the video stream by attempting to implement a similar approach. My expectation was that the video stream would resume normally after unmuting, just as the audio stream does. However, in practice, the video stream gets stuck and does not resume as intended.
  • l

    limited-arm-86913

    08/15/2024, 10:38 PM
    Hi, team, I am very thankful to all the wonderful things you guys have done for the community, and I am reaching the final phase of releasing my app built upon livekit. As I am a new developer and it’s the first time for me to use open source resources to build something, I am worried that I don’t know enough about how to properly declare the copyright of livekit, can anyone tell me what are the musts, or are there any formats that I can follow to ensure I follow all the necessary conventions?
    d
    • 2
    • 2
  • i

    important-megabyte-62876

    08/16/2024, 8:37 PM
    Hey there! I am wondering if LiveKit is now fully supported on Unity for Meta Quest (Android)? I saw that version 1.0.0 of the Unity SDK now supports all native platforms but I am wondering if all LiveKit features are now 100% supported for Android/Quest? And are there any known issues?
    d
    • 2
    • 1
  • d

    dry-elephant-14928

    08/17/2024, 7:52 AM
    archived the channel