TTSService: flush_audio() should be in the base class

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-13 19:41:47 -07:00
parent f8610a69a5
commit b632d71465

View File

@@ -285,6 +285,9 @@ class TTSService(AIService):
async def update_setting(self, key: str, value: Any):
pass
async def flush_audio(self):
pass
async def start(self, frame: StartFrame):
await super().start(frame)
self._sample_rate = self._init_sample_rate or frame.audio_out_sample_rate
@@ -535,9 +538,6 @@ class WebsocketTTSService(TTSService, WebsocketService):
TTSService.__init__(self, **kwargs)
WebsocketService.__init__(self)
async def flush_audio(self):
pass
class InterruptibleTTSService(WebsocketTTSService):
"""This is a base class for websocket-based TTS services that don't support