From f028f08d6bb1a1a123b36c4251dd209c78d8df8c Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 13 Apr 2026 00:09:54 -0400 Subject: [PATCH] Fix pulseaudio breaking --- drb-edge-node/app/internal/call_recorder.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drb-edge-node/app/internal/call_recorder.py b/drb-edge-node/app/internal/call_recorder.py index 4d9bace..9443af2 100644 --- a/drb-edge-node/app/internal/call_recorder.py +++ b/drb-edge-node/app/internal/call_recorder.py @@ -27,13 +27,13 @@ class CallRecorder: self._current_file = self._recordings_dir / f"{ts}_{call_id}.mp3" self._current_call_id = call_id - # Record from PulseAudio (drb_sink.monitor, set as the default source). - # PulseAudio is the primary audio path — it has ~250ms latency vs 2-5s for Icecast, - # so recordings align with OP25 call_start/call_end events. + stream_url = f"http://{settings.icecast_host}:{settings.icecast_port}{settings.icecast_mount}" cmd = [ "ffmpeg", "-y", - "-f", "pulse", - "-i", "default", + "-reconnect", "1", + "-reconnect_streamed", "1", + "-reconnect_delay_max", "5", + "-i", stream_url, "-acodec", "libmp3lame", "-ar", "22050", "-b:a", "32k",