reverted uv.lock, updated readthedocs.yaml, copyright year updates

This commit is contained in:
Neil Ruaro
2026-01-16 02:50:18 +08:00
parent 8cf72b36cb
commit f60eeaa212
4 changed files with 12 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 20242025, Daily
# Copyright (c) 20242026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 20242025, Daily
# Copyright (c) 20242026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
@@ -253,6 +253,14 @@ class CambTTSService(TTSService):
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."
)
@traced_tts
async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]:
"""Generate speech from text using Camb.ai's TTS API.