quick-gpu-24854
11/04/2025, 11:17 AMsession.generateReply() - I can hear it speaking
• then I can converse with it as expected
But when deployed on Fly.io, it behaves like this:
• starts with session.generateReply() - I can hear it speaking - GOOD ✅
• then as soon as I start speaking, I get this error:
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info]2025-11-04T11:06:36.590Z [uncaughtException] Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at target.send (node:internal/child_process:753:16)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at InferenceProcExecutor.doInference (file:///app/node_modules/@livekit/agents/dist/ipc/inference_proc_executor.js:60:15)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at #doInferenceTask (file:///app/node_modules/@livekit/agents/dist/ipc/job_proc_executor.js:63:50)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at ChildProcess.<anonymous> (file:///app/node_modules/@livekit/agents/dist/ipc/job_proc_executor.js:49:58)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at ChildProcess.emit (node:events:531:35)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at emit (node:internal/child_process:949:14)
2025-11-04T11:06:36Z app[d8d4295f266538] fra [info] at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
I’ve spent a lot of time debugging this and I have no clue what goes wrong.
Any ideas ? Thanks!!!
----------
This is my new voice.AgentSession() :
export function createAgentSession({
vad,
userData,
}: {
vad: silero.VAD;
userData: UserContext;
}): voice.AgentSession {
return new voice.AgentSession({
stt: createSTT(),
llm: createLLM(),
tts: createTTS(),
turnDetection: new livekit.turnDetector.MultilingualModel(),
vad,
voiceOptions: VOICE_OPTIONS,
userData,
});
}lively-winter-88668
11/04/2025, 11:50 AMquick-gpu-24854
11/04/2025, 11:51 AM