We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2a97ee commit 939b976Copy full SHA for 939b976
livekit-agents/livekit/agents/voice/recorder_io/recorder_io.py
@@ -116,7 +116,9 @@ def recording_started_at(self) -> float | None:
116
def _write_cb(self, buf: list[rtc.AudioFrame]) -> None:
117
assert self._in_record is not None
118
119
- input_buf = self._in_record.take_buf(pad_since=self._out_record._last_speech_end_time)
+ input_buf = self._in_record.take_buf(
120
+ pad_since=self._out_record._last_speech_end_time if self._out_record else None
121
+ )
122
self._in_q.put_nowait(input_buf)
123
self._out_q.put_nowait(buf)
124
0 commit comments