is it possible to activate agent on socket stream ...
# ask-ai
f
is it possible to activate agent on socket stream instead of plivo telephony. so that any telephony partner streams the customer audio to agent and back
t
Thanks for reaching out, Abhinav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can — activating an agent on a socket stream instead of Plivo (or any specific SIP provider) is possible. LiveKit supports ingesting and egressing audio over WebSocket and WebRTC, so a telephony partner that can stream audio over WebSocket or WHIP/WEBRTC can feed customer audio into a room and receive the agent’s audio back. Options you can use: • WebSocket TrackEgress: stream agent audio out as raw PCM over a WebSocket for your partner to forward to the phone. • WHIP/Ingress or server-side WebRTC publish: have the partner ingest audio via WHIP or send audio into your server which publishes a virtual participant audio track into the LiveKit room. • Two-way flow: agent joins the room, receives partner-ingested audio, processes it (STT/LLM/TTS), publishes reply; that reply is sent back via TrackEgress/WebRTC to the partner. Which integration does your telephony partner support (WebSocket raw PCM, WHIP/WebRTC, or something else)? I’ll outline the exact steps for the method you choose. Sources: Track egress | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWiki | Agents telephony integration | LiveKit docs | OpenAI and LiveKit partner to turn Advanced Voice into an API | Speech-to-text (STT) models | LiveKit Docs