Hi if I wanted to run LiveKit separately without u...
# server-api
g
Hi if I wanted to run LiveKit separately without using
JobContext
inside a websocket stream how can I do that my current implementation don't want to have SIP trunking for calls instead I am using Twilio webhook and then streaming it is there a way we can use
AgentSession
inside the streaming or we should do a step by step implementation with STT and TTS.
r
I think you would have to replace all the bits that worker.py is doing. The agent frame work is open source code if you want to take a look.
g
Yeah I think I need to do a re-write to my own needs
r
Agent session does not connect to SIP it gets a WebRTC stream. What you are talking about would require to change the server.
g
Oh I see so I want to change the server itself. But what if I do a step by step process like STT, TTS and LLM processing I did this and it's working but I feel it's too slow also the VAD is not working if do that.
r
I am not understanding what you are trying to do. Can you tell me what your use case is? Not sure why it would be too slow or VAD not working and what that has to do with your first question. I am not sure if it is right but my sense is you have a bad assumption about how agents work.
g
So what we need basically is to run LiveKit agents behind WebSocket stream similar to how OpenAI realtime is connected to Twilio or Plivo. Twilio webhook -> Backend Websocket -> agent based phone call this is is what we are trying to do currently
r
ok, I am not really sure how you will be able to do that.
g
Got it
r
Have you looked at https://docs.livekit.io/sip/accepting-calls-twilio-voice/ to see if that fits your needs?
g
Will check