Adding missing flush_audio method to AzureTTSService.

This commit is contained in:
Filipi Fuchter
2025-03-06 10:34:25 -03:00
parent 26000b616d
commit 2d114b15f9

View File

@@ -577,6 +577,10 @@ class AzureTTSService(AzureBaseTTSService):
logger.error(f"Speech synthesis canceled: {evt.result.cancellation_details.reason}")
self._audio_queue.put_nowait(None)
async def flush_audio(self):
logger.trace(f"{self}: flushing audio")
# TODO: check what we need to implement here ?
async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]:
logger.debug(f"{self}: Generating TTS [{text}]")