Add initialization of self._settings to service superclasses (STTService, TTSService, LLMService), using "generic" settings for those services (STTSettings, TTSSettings, LLMSettings)

This commit is contained in:
Paul Kompfner
2026-02-20 09:31:22 -05:00
parent fb27642190
commit 5d8a5bf750
3 changed files with 3 additions and 0 deletions

View File

@@ -205,6 +205,7 @@ class LLMService(UserTurnCompletionLLMServiceMixin, AIService):
self._tracing_enabled: bool = False
self._skip_tts: Optional[bool] = None
self._summary_task: Optional[asyncio.Task] = None
self._settings = LLMSettings() # Here in case subclass doesn't implement more specific settings (hopefully shouldn't happen)
self._register_event_handler("on_function_calls_started")
self._register_event_handler("on_completion_timeout")

View File

@@ -105,6 +105,7 @@ class STTService(AIService):
self._audio_passthrough = audio_passthrough
self._init_sample_rate = sample_rate
self._sample_rate = 0
self._settings = STTSettings() # Here in case subclass doesn't implement more specific settings (hopefully shouldn't happen)
self._tracing_enabled: bool = False
self._muted: bool = False
self._user_id: str = ""

View File

@@ -192,6 +192,7 @@ class TTSService(AIService):
self._init_sample_rate = sample_rate
self._sample_rate = 0
self._voice_id: str = ""
self._settings = TTSSettings() # Here in case subclass doesn't implement more specific settings (hopefully shouldn't happen)
self._text_aggregator: BaseTextAggregator = text_aggregator or SimpleTextAggregator()
if text_aggregator:
import warnings