services(elevenlabs): warn if sample rate not supported

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-04 23:50:21 -08:00
parent 75a29424ff
commit 0a333c26da

View File

@@ -114,6 +114,9 @@ def output_format_from_sample_rate(sample_rate: int) -> str:
return "pcm_24000"
case 44100:
return "pcm_44100"
logger.warning(
f"ElevenLabsTTSService: No output format available for {sample_rate} sample rate"
)
return "pcm_16000"