diff --git a/examples/foundational/07zg-interruptible-camb.py b/examples/foundational/07zg-interruptible-camb.py index 5fcc7c2e9..256eff6f7 100644 --- a/examples/foundational/07zg-interruptible-camb.py +++ b/examples/foundational/07zg-interruptible-camb.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024–2025, Daily +# Copyright (c) 2024–2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # diff --git a/examples/foundational/26e-gemini-live-google-search.py b/examples/foundational/26e-gemini-live-google-search.py index 294cf1789..9b37f32ee 100644 --- a/examples/foundational/26e-gemini-live-google-search.py +++ b/examples/foundational/26e-gemini-live-google-search.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2025, Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # diff --git a/examples/foundational/32-gemini-grounding-metadata.py b/examples/foundational/32-gemini-grounding-metadata.py index ff4369224..7647287ed 100644 --- a/examples/foundational/32-gemini-grounding-metadata.py +++ b/examples/foundational/32-gemini-grounding-metadata.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2025, Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # diff --git a/src/pipecat/services/camb/tts.py b/src/pipecat/services/camb/tts.py index 09d1c4e77..89279604d 100644 --- a/src/pipecat/services/camb/tts.py +++ b/src/pipecat/services/camb/tts.py @@ -248,18 +248,10 @@ class CambTTSService(TTSService): frame: The start frame containing initialization parameters. """ await super().start(frame) + # Use model-specific sample rate if not explicitly specified if not self._init_sample_rate: - self._sample_rate = MODEL_SAMPLE_RATES.get(self._model_name, 22050) - self._settings["sample_rate"] = self._sample_rate - - # Warn if sample rate doesn't match model's supported rate - if self._sample_rate != MODEL_SAMPLE_RATES.get(self._model_name): - logger.warning( - f"Camb.ai's {self._model_name} model requires " - f"{MODEL_SAMPLE_RATES.get(self._model_name)}Hz sample rate. " - f"Current rate of {self._sample_rate}Hz may cause issues." - ) + self._sample_rate = MODEL_SAMPLE_RATES.get(self.model_name, 22050) @traced_tts async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]: diff --git a/src/pipecat/tests/utils.py b/src/pipecat/tests/utils.py index 94b8cb1a4..ac5739829 100644 --- a/src/pipecat/tests/utils.py +++ b/src/pipecat/tests/utils.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2025 Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # diff --git a/tests/test_krisp_sdk_manager.py b/tests/test_krisp_sdk_manager.py index a98c97f09..7c774ab85 100644 --- a/tests/test_krisp_sdk_manager.py +++ b/tests/test_krisp_sdk_manager.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2025 Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # diff --git a/tests/test_krisp_viva_filter.py b/tests/test_krisp_viva_filter.py index c8f1a23c0..a788ab131 100644 --- a/tests/test_krisp_viva_filter.py +++ b/tests/test_krisp_viva_filter.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2025 Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License # @@ -9,7 +9,7 @@ import os import sys import tempfile import unittest -from unittest.mock import AsyncMock, MagicMock, Mock, patch +from unittest.mock import MagicMock, patch import numpy as np diff --git a/tests/test_user_turn_controller.py b/tests/test_user_turn_controller.py index 8aa509a8a..1c5cfcf85 100644 --- a/tests/test_user_turn_controller.py +++ b/tests/test_user_turn_controller.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2024-2026 Daily +# Copyright (c) 2024-2026, Daily # # SPDX-License-Identifier: BSD 2-Clause License #