Override CambTTSSettings.voice type from str to int to match Camb.ai's integer voice IDs

This commit is contained in:
Paul Kompfner
2026-03-11 15:44:05 -04:00
parent 65561a1d83
commit 080ed22ff5
2 changed files with 7 additions and 2 deletions

View File

@@ -138,10 +138,13 @@ class CambTTSSettings(TTSSettings):
"""Settings for CambTTSService.
Parameters:
voice: Camb.ai voice ID. Overrides ``TTSSettings.voice`` (str) because
Camb.ai uses integer voice IDs.
user_instructions: Custom instructions for mars-instruct model only.
Ignored for other models. Max 1000 characters.
"""
voice: int | _NotGiven = field(default_factory=lambda: NOT_GIVEN)
user_instructions: str | None | _NotGiven = field(default_factory=lambda: NOT_GIVEN)