From dc8972cd94fb6d28049f7e8785262ef3ac657f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kmen=20G=C3=B6rgen?= Date: Tue, 20 Jan 2026 13:44:25 +0100 Subject: [PATCH] log optimal number of frames for given sample rate in AICFilter. --- src/pipecat/audio/filters/aic_filter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipecat/audio/filters/aic_filter.py b/src/pipecat/audio/filters/aic_filter.py index 748064806..e1136e411 100644 --- a/src/pipecat/audio/filters/aic_filter.py +++ b/src/pipecat/audio/filters/aic_filter.py @@ -213,6 +213,9 @@ class AICFilter(BaseAudioFilter): logger.debug(f" Sample rate: {self._sample_rate} Hz") logger.debug(f" Frames per chunk: {self._frames_per_block}") logger.debug(f" Optimal sample rate: {self._model.get_optimal_sample_rate()} Hz") + logger.debug( + f" Optimal number of frames for {self._sample_rate} Hz: {self._model.get_optimal_num_frames(self._sample_rate)}" + ) logger.debug( f" Output delay: {self._processor_ctx.get_output_delay()} samples " f"({self._processor_ctx.get_output_delay() / self._sample_rate * 1000:.2f}ms)"