TTSService: flush_audio() should be in the base class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user